fix myr fixed invoice bug

This commit is contained in:
omair saleh
2021-08-12 11:52:18 +08:00
parent 60eef774e5
commit 61628069ab
@@ -104,7 +104,11 @@ class CreateInvoiceTransactionProcessor
$payment_amount = $this->calculatesBookingTransferredAmount->execute($booking, $booking->fix_currency_id);
$booking_amount = $booking->fix_amount;
dd((float) $booking_amount .'>'. (float) $payment_amount);
if (abs(((float) $booking_amount - (float) $payment_amount)/(float) $payment_amount) < 0.009) {
dd('okay');
}
dd('nope');
if ((float) $booking_amount > (float) $payment_amount) {
return;