mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix orders not complete after po approved
This commit is contained in:
@@ -12,7 +12,6 @@ class CalculatesBookingTransferredAmount
|
||||
{
|
||||
|
||||
public function execute(Booking $booking, int $type){
|
||||
dd($booking->transactions()->bills()->transferred()->get());
|
||||
return $type === 1 ?
|
||||
$booking->transactions()->bills()->transferred()
|
||||
->selectRaw('sum(amount - service_charge - tax) as sub_total')->get()->sum('sub_total') :
|
||||
|
||||
@@ -100,8 +100,7 @@ class CreateInvoiceTransactionProcessor
|
||||
$payment_amount = $this->calculatesBookingTransferredAmount->execute($booking, $booking->fix_currency_id);
|
||||
$booking_amount = $booking->fix_amount;
|
||||
|
||||
if ((float) $booking_amount !== (float) $payment_amount) {
|
||||
dd((float) $booking_amount .'='. (float) $payment_amount);
|
||||
if ((float) $booking_amount > (float) $payment_amount) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user