fix payment invoice export

This commit is contained in:
omair saleh
2022-08-24 15:29:58 +08:00
parent ee5a9d09f1
commit 9f3b494cdc
@@ -50,14 +50,14 @@ class ExportsPaymentTransactions implements FromQuery, WithHeadings, WithHeading
*/
public function query()
{
$start_date = $this->request->input('start_date', null);
$start_date = $this->request->input('startDate', null);
if ($start_date) {
$start_date = Carbon::parse($this->request->input('start_date'))->format('Y-m-d');
$start_date = Carbon::parse($this->request->input('startDate'))->format('Y-m-d');
}
$end_date = $this->request->input('end_date', null);
$end_date = $this->request->input('endDate', null);
if ($end_date) {
$end_date = Carbon::parse($this->request->input('end_date'))->format('Y-m-d');
$end_date = Carbon::parse($this->request->input('endDate'))->format('Y-m-d');
}
$query = Transaction::query();