mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-21 13:34:15 +00:00
debug invoice
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user