debug purchase amount decimal issue

This commit is contained in:
omair saleh
2021-06-28 12:45:05 +08:00
parent 2a1ada15a9
commit 9ade93dbfa
@@ -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);