on hold packing list export

This commit is contained in:
omair saleh
2022-04-15 14:19:32 +08:00
parent b967e4f9ab
commit 5433c202a7
@@ -33,7 +33,7 @@ class ExportsOnHoldPackingList implements FromQuery, WithHeadings, WithHeadingRo
*/
public function query()
{
return PackingList::where('type', '=', 2)->whereIn('status', [4, 5]);
return PackingList::where('type', '=', 2)->whereIn('status', [4, 5])->whereHas('containers');
}
/**