edit report controller with new changes on hesabdariDoc
This commit is contained in:
parent
e6c94ae509
commit
3a6558ae64
|
@ -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
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue