edit report controller with new changes on hesabdariDoc

This commit is contained in:
Hesabix 2025-08-19 18:43:54 +00:00
parent e6c94ae509
commit 3a6558ae64

View file

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