export based on payment date

This commit is contained in:
Omair Saleh
2024-07-01 13:13:57 +08:00
parent 42d8f811c6
commit 56dca799f8
@@ -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]);
@@ -100,7 +100,7 @@ dd($approvalStatus);
$transaction->where('type', TransactionType::PAYMENT)->where('updated_at', '>=', Carbon::parse($end_date)->format('Y-m-d 0:00:00')); $transaction->where('type', TransactionType::PAYMENT)->where('updated_at', '>=', Carbon::parse($end_date)->format('Y-m-d 0:00:00'));
}); });
} }
$query->dd();
return $query; return $query;
} }