export based on payment date

This commit is contained in:
Omair Saleh
2024-07-01 13:13:15 +08:00
parent 030136fd03
commit 42d8f811c6
@@ -76,7 +76,7 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading
// pendingPaymentSection // pendingPaymentSection
$approvalStatus = ApprovalStatus::APPROVED; $approvalStatus = ApprovalStatus::APPROVED;
} }
dd($approvalStatus);
// $query->where('type', TransactionType::SHIPPING_INVOICE)->whereIn('status', [$approvalStatus]); // $query->where('type', TransactionType::SHIPPING_INVOICE)->whereIn('status', [$approvalStatus]);
$query->whereIn('type', [TransactionType::SHIPPING_INVOICE, TransactionType::STORAGE_INVOICE])->whereIn('status', [$approvalStatus]); $query->whereIn('type', [TransactionType::SHIPPING_INVOICE, TransactionType::STORAGE_INVOICE])->whereIn('status', [$approvalStatus]);