stock module latest today vadivel J 30-01-2025
This commit is contained in:
parent
c3ed0fbbbc
commit
3423e8d6c2
@ -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
Loading…
Reference in New Issue
Block a user