FIX_BRANCH_UNITS : RV
This commit is contained in:
parent
82584d7317
commit
3138590650
@ -4054,13 +4054,13 @@ class ClientController extends AdminController
|
||||
|
||||
// Additional logic for non-individual clients (client_type != 2)
|
||||
if ($client_type != 2) {
|
||||
$unit = $postData['short_name'] . '-' . $postData['branch_code'];
|
||||
$unit[] = $postData['short_name'] . '-' . $postData['branch_code'];
|
||||
$branch_data = [
|
||||
'client_id' => $client_insert,
|
||||
'branch_name' => $postData['branch_name'],
|
||||
'branch_code' => $postData['branch_code'],
|
||||
'gst' => $postData['gst'],
|
||||
'units' => $unit,
|
||||
'units' => json_encode($unit) ?? null,
|
||||
];
|
||||
|
||||
$branch_insert = $this->clientBranchModel->insert($branch_data);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user