From 8775fb13c736abfd5a49dbf76d2880d90d31a7dd Mon Sep 17 00:00:00 2001 From: faezehzafarbakhsh Date: Mon, 5 Jan 2026 15:52:32 +0330 Subject: [PATCH] improve code --- app/Services/Cartables/Mission/ReportService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/Cartables/Mission/ReportService.php b/app/Services/Cartables/Mission/ReportService.php index 2d454b76..ec070159 100644 --- a/app/Services/Cartables/Mission/ReportService.php +++ b/app/Services/Cartables/Mission/ReportService.php @@ -116,6 +116,10 @@ class ReportService AND m.created_at <= :to_m WHERE c.province_id = :province_id + AND ( + c.type_id = 1 + OR c.name_fa IN ('اداره ماشین آلات', 'اداره نقلیه') + ) GROUP BY c.id, c.name_fa )