debug invoice

This commit is contained in:
omair saleh
2021-08-12 11:27:28 +08:00
parent 6b92e3cac3
commit c0febb8957
2 changed files with 2 additions and 1 deletions
@@ -12,6 +12,7 @@ class CalculatesBookingTransferredAmount
{
public function execute(Booking $booking, int $type){
dd($type);
return $type === 1 ?
$booking->transactions()->bills()->transferred()
->selectRaw('sum(amount - service_charge - tax) as sub_total')->get()->sum('sub_total') :
@@ -103,7 +103,7 @@ class CreateInvoiceTransactionProcessor
}
$payment_amount = $this->calculatesBookingTransferredAmount->execute($booking, $booking->fix_currency_id);
dd($payment_amount);
$booking_amount = $booking->fix_amount;
if ((float) $booking_amount > (float) $payment_amount) {