bug fix in store room extracy data

This commit is contained in:
Hesabix 2024-11-09 11:10:18 +00:00
parent f85d73e195
commit 5343345f15
2 changed files with 23 additions and 13 deletions

View file

@ -45,7 +45,13 @@ class StoreroomController extends AbstractController
'bid' => $acc['bid'],
]);
return $this->json($extractor->operationSuccess(Explore::ExploreStoreRooms($items)));
return $this->json(
$extractor->operationSuccess(
Explore::ExploreStoreRooms(
$items
)
)
);
}
#[Route('/api/storeroom/mod/{code}', name: 'app_storeroom_mod')]
@ -446,9 +452,12 @@ class StoreroomController extends AbstractController
$entityManager->persist($ticket);
$entityManager->flush();
if ($transferType->getName() == 'باربری') {
if($ticket->getTransfer() == null) $ticket->setTransfer(0);
if($ticket->getReferral() == null) $ticket->setReferral(0);
if($ticket->getSenderTel() == null) $ticket->setSenderTel(0);
if ($ticket->getTransfer() == null)
$ticket->setTransfer(0);
if ($ticket->getReferral() == null)
$ticket->setReferral(0);
if ($ticket->getSenderTel() == null)
$ticket->setSenderTel(0);
$smsres = $sms->sendByBalance(
[
$person->getNikename(),

View file

@ -471,7 +471,8 @@ class Explore
'name' => $item->getName(),
'tel' => $item->getTel(),
'address' => $item->getAdr(),
'manager' => $item->getManager()
'manager' => $item->getManager(),
'active'=>$item->isActive()
];
}