fix proforma invoice currency rate

This commit is contained in:
Omair Saleh
2022-09-30 13:51:22 +08:00
parent 08d4aa1e1e
commit 05c8b709ab
@@ -135,7 +135,7 @@ class CreateProformaInvoiceTransactionProcessor
$transaction = $booking->transactions()
->where('type', TransactionType::PAYMENT)
->first();
dd($booking->transactions()->where('status', ApprovalStatus::PENDING_SUBMISSION)->get());
dd($booking->transactions()->where('status', ApprovalStatus::PENDING_SUBMISSION)->whereDate('expires_on', '>', Carbon::now())->dd());
dd($booking->transactions()->payments()->where(function($query){
return $query->where(function($query){
return $query->where('status', ApprovalStatus::PENDING_SUBMISSION)->whereDate('expires_on', '>', Carbon::now());