export yd parcel postcode

This commit is contained in:
Omair Saleh
2022-10-13 01:17:55 +08:00
parent bc6c690b54
commit c050444cdb
@@ -33,7 +33,7 @@ class ExportsParcelPostcodes implements WithHeadings, WithHeadingRow, WithMappin
*/
public function query()
{
return PackingList::where('type', PackingListType::SHIPPING_PACKING_LIST)->whereRaw('LENGTH(reference) > 8')->where('owner_type', Order::class)->whereDate('created_at', '>=', Carbon::parse('20-09-2022'))->whereDoesntHave('containers');
return PackingList::where('type', PackingListType::SHIPPING_PACKING_LIST)->whereRaw('LENGTH(reference) > 8')->where('reference', 'not like', "%YW%")->where('owner_type', Order::class)->whereDate('created_at', '>=', Carbon::parse('20-09-2022'))->whereDoesntHave('containers');
}
/**