From ffb446491ef8c8efae39936ec1eea214a074fa84 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 28 Jun 2021 13:05:28 +0800 Subject: [PATCH] floor purchase order total to 2 decimals --- .../ControllersLogic/CreatePurchaseOrderTransactionLogic.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php index 7203c8f6..3a2d6891 100644 --- a/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php +++ b/app/Classes/Modules/Transactions/ControllersLogic/CreatePurchaseOrderTransactionLogic.php @@ -104,9 +104,7 @@ class CreatePurchaseOrderTransactionLogic extends AbstractControllerLogic !$transaction ? $transaction = $this->createsTransaction->execute($booking, $object) : $transaction = $this->updatesTransaction->execute($transaction, $object); - dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '') .' = '.number_format((float)$booking->fix_amount, 2, '.', '')); - dd(number_format(floor((float) $total * 100) / 10 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '')); - $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 10 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); + $this->updatesTransactionStatus->execute($transaction, number_format(floor((float) $total * 100) / 100 , 2, '.', '') === number_format((float)$booking->fix_amount, 2, '.', '') ? ApprovalStatus::PENDING_VERIFICATION : ApprovalStatus::PENDING_SUBMISSION); $this->deletesTransactionDetails->execute($transaction);