performa invoice

This commit is contained in:
omair saleh
2021-11-28 21:43:38 +08:00
parent 0449ea089e
commit be2c043ad4
@@ -140,12 +140,12 @@ class CreateProformaInvoiceTransactionProcessor
$total_service_charge = $booking->transactions()
->where('type', TransactionType::PAYMENT)
->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
->whereNotIn('status', [ApprovalStatus::REJECTED, ApprovalStatus::SUSPENDED])
->sum('service_charge');
$total_tax = $booking->transactions()
->where('type', TransactionType::PAYMENT)
->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
->whereIn('status', [ApprovalStatus::REJECTED, ApprovalStatus::SUSPENDED])
->sum('tax');
$transaction_object = new TransactionObject(