fix bill seeder

This commit is contained in:
omair saleh
2022-02-22 01:25:17 +08:00
parent 0047ff7544
commit 4fc2d432f2
@@ -138,7 +138,7 @@ class CreateInvoiceTransactionProcessor
$billNumber = $this->generatesTransactionBillNumber->execute('INV-');
$booking_currency_average_rate = $this->calculatesBookingCurrencyAverageRate->execute($booking, TransactionType::PAYMENT);
dd($booking_currency_average_rate);
$total_service_charge = $booking->transactions()
->where('type', TransactionType::PAYMENT)
->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
@@ -213,7 +213,7 @@ class CreateInvoiceTransactionProcessor
$transaction = $booking->transactions()->payments()->where('status', ApprovalStatus::COMPLETED)->first()
->transactions()->where('type', TransactionType::BILL)->first();
dd($transaction);
$transaction_object = new TransactionObject(
$billNumber,
TransactionType::SUPPLIER_DELIVER,