mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-25 23:43:58 +00:00
fix myr fixed invoice bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user