fix export arrival list

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