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 ]); }