get_codeclient return void

1ac55b0800/htdocs/societe/class/societe.class.php (L2421-L2441)
This commit is contained in:
Frédéric FRANCE 2019-01-20 15:23:48 +01:00 committed by GitHub
parent 0e843c56d0
commit 077b9f1996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -859,8 +859,16 @@ if ($rowid > 0)
{
$tmpcompany = new Societe($db);
$tmpcompany->name=$companyname;
$customercode = $tmpcompany->get_codeclient($tmpcompany,0);
$formquestion[]=array('label' => $langs->trans("CustomerCode"), 'type' => 'text', 'name' => 'customercode', 'value' => $customercode, 'morecss' => 'minwidth300', 'moreattr' => 'maxlength="128"');
$tmpcompany->get_codeclient($tmpcompany, 0);
$customercode = $tmpcompany->code_client;
$formquestion[]=array(
'label' => $langs->trans("CustomerCode"),
'type' => 'text',
'name' => 'customercode',
'value' => $customercode,
'morecss' => 'minwidth300',
'moreattr' => 'maxlength="128"',
);
}
// @TODO Add other extrafields mandatory for thirdparty creation