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([ $docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([
'year' => $acc['year'], 'year' => $acc['year'],
'bid' => $acc['bid'], 'bid' => $acc['bid'],
'money' => $acc['money'] 'money' => $acc['money'],
'isApproved' => true
]); ]);
} else { } else {
$docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([ $docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([
'year' => $acc['year'], 'year' => $acc['year'],
'bid' => $acc['bid'], 'bid' => $acc['bid'],
'type' => $params['type'], 'type' => $params['type'],
'money' => $acc['money'] 'money' => $acc['money'],
'isApproved' => true
]); ]);
} }
//filter docs by date //filter docs by date
@ -237,14 +239,16 @@ class ReportController extends AbstractController
$docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([ $docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([
'year' => $acc['year'], 'year' => $acc['year'],
'bid' => $acc['bid'], 'bid' => $acc['bid'],
'money' => $acc['money'] 'money' => $acc['money'],
'isApproved' => true
]); ]);
} else { } else {
$docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([ $docs = $entityManagerInterface->getRepository(HesabdariDoc::class)->findBy([
'year' => $acc['year'], 'year' => $acc['year'],
'bid' => $acc['bid'], 'bid' => $acc['bid'],
'type' => $params['type'], 'type' => $params['type'],
'money' => $acc['money'] 'money' => $acc['money'],
'isApproved' => true
]); ]);
} }