From 3a6558ae6401e9b775353d0db821701e50e3f727 Mon Sep 17 00:00:00 2001 From: Babak Alizadeh Date: Tue, 19 Aug 2025 18:43:54 +0000 Subject: [PATCH] edit report controller with new changes on hesabdariDoc --- hesabixCore/src/Controller/ReportController.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hesabixCore/src/Controller/ReportController.php b/hesabixCore/src/Controller/ReportController.php index dc91f22..9ee64f1 100644 --- a/hesabixCore/src/Controller/ReportController.php +++ b/hesabixCore/src/Controller/ReportController.php @@ -53,14 +53,16 @@ class ReportController extends AbstractController $docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([ 'year' => $acc['year'], 'bid' => $acc['bid'], - 'money' => $acc['money'] + 'money' => $acc['money'], + 'isApproved' => true ]); } else { $docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([ 'year' => $acc['year'], 'bid' => $acc['bid'], 'type' => $params['type'], - 'money' => $acc['money'] + 'money' => $acc['money'], + 'isApproved' => true ]); } //filter docs by date @@ -237,14 +239,16 @@ class ReportController extends AbstractController $docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([ 'year' => $acc['year'], 'bid' => $acc['bid'], - 'money' => $acc['money'] + 'money' => $acc['money'], + 'isApproved' => true ]); } else { $docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([ 'year' => $acc['year'], 'bid' => $acc['bid'], 'type' => $params['type'], - 'money' => $acc['money'] + 'money' => $acc['money'], + 'isApproved' => true ]); }