fix export arrival list

This commit is contained in:
omair saleh
2022-05-10 15:02:06 +08:00
parent f73094ca06
commit 6713542dc9
@@ -40,7 +40,7 @@ class ExportsArrivedParcel implements WithHeadings, WithHeadingRow, WithMapping,
{
$returnArray = collect();
$packingLists = PackingList::where('type', '=', 1)->where('status', '=', 2)->whereHas('transport', function ($query){
$packingLists = PackingList::where('type', '=', 1)->where('status', '=', 2)->whereHas('transports', function ($query){
return $query->whereMonth('drop_date', '>', 3)->whereYear('drop_date', 2022);
})->get();