fix myr fixed invoice bug

This commit is contained in:
omair saleh
2021-08-12 14:00:55 +08:00
parent fe1d721a1f
commit 780f9e4d2a
@@ -111,6 +111,7 @@ class CreateInvoiceTransactionProcessor
$payable_amount = $this->calculatesBookingPayableAmount->execute($booking, $booking->fix_currency_id);
$booking_amount = $booking->fix_amount;
dd((float) $booking_amount .' > '. (float) $payable_amount);
// confirm that booking amount has been fully paid
if ((float) $booking_amount > (float) $payable_amount) {
return;