diff --git a/app/Classes/Modules/Exports/Services/ExportsPendingArrangementDeliveryList.php b/app/Classes/Modules/Exports/Services/ExportsPendingArrangementDeliveryList.php index b7caa566..2b580f4f 100644 --- a/app/Classes/Modules/Exports/Services/ExportsPendingArrangementDeliveryList.php +++ b/app/Classes/Modules/Exports/Services/ExportsPendingArrangementDeliveryList.php @@ -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)); }); }