stock module latest today vadivel J 30-01-2025

This commit is contained in:
vadivelJ96 2025-01-30 18:24:19 +05:30
parent c3ed0fbbbc
commit 3423e8d6c2
2 changed files with 1482 additions and 983 deletions

View File

@ -1445,10 +1445,16 @@ class StockController extends BaseController
public function updateTrpProductionDetails($inserts, $freshEntry = false)
public function updateTrpProductionDetails($inserts = null, $freshEntry = false)
{
$postData = $this->request->getPost();
$postData = json_decode($this->request->getPost('updateTrpProductionDetails'));
//converting std class object to associative array..
$postData['updateTrpProductionDetails'] = json_decode(json_encode($postData), true);
if (empty($postData['updateTrpProductionDetails'])) {
if (empty($inserts)) {
return $this->response->setJSON(['error' => 'No data found to update']);

File diff suppressed because it is too large Load Diff