fix proforma invoice currency rate

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