fix pending delivery export

This commit is contained in:
omair saleh
2022-09-19 11:39:16 +08:00
parent ba192563ba
commit 35611da094
@@ -43,7 +43,7 @@ class ExportsPendingArrangementDeliveryList implements FromQuery, WithHeadings,
public function query()
{
return PackingList::where('type', '=', 2)->whereHas('containers', function ($query){
$query->where('containers.status', ApprovalStatus::COMPLETED)->where('created_at', Carbon::now()->subMonths(3));
$query->where('containers.status', ApprovalStatus::COMPLETED)->where('containers.created_at', Carbon::now()->subMonths(3));
});
}