From 9ade93dbfadf8bd4a759e182791de3c869cb44b9 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 12:45:05 +0800 Subject: [PATCH] debug purchase amount decimal issue --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 25154301..7a68890b 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,6 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); + dd((float)number_format((float)$total , 2, '.', '') === (float)number_format((float)$booking->fix_amount)); $this->updatesTransactionStatus->execute($transaction, (float)number_format((float)$total , 2, '.', '') === (float)number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction);