fix myr fixed invoice bug

This commit is contained in:
omair saleh
2021-08-12 12:44:41 +08:00
parent 832e5f7ba7
commit d8948dd5fb
@@ -105,6 +105,10 @@ class CreateInvoiceTransactionProcessor
$payment_amount = $this->calculatesBookingTransferredAmount->execute($booking, $booking->fix_currency_id);
$booking_amount = $booking->fix_amount;
if((float) $payment_amount === 0) {
return;
}
if (!(abs(((float) $booking_amount - (float) $payment_amount)/(float) $payment_amount) < 0.009)) {
return;
}