fix proforma invoice currency rate

This commit is contained in:
Omair Saleh
2022-09-30 13:31:58 +08:00
parent 8664d77ad5
commit 744675cb51
@@ -135,7 +135,7 @@ class CreateProformaInvoiceTransactionProcessor
$transaction = $booking->transactions()
->where('type', TransactionType::PAYMENT)
->first();
dd($booking->transactions()->payments()->where(function($query){
dd($booking->transactions()->where('type', TransactionType::PAYMENT)->where(function($query){
return $query->where('status', ApprovalStatus::PENDING_SUBMISSION)->whereDate('expires_on', '>', Carbon::now())->get();
})->orWhere(function($query){
return $query->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED]);