FIX_BRANCH_UNITS : RV

This commit is contained in:
VENKATESHWARAN 2025-06-05 15:08:24 +05:30
parent 82584d7317
commit 3138590650

View File

@ -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);