fix fourn code preload
This commit is contained in:
parent
5d74c81941
commit
70ff806fdf
@ -949,12 +949,13 @@ else
|
|||||||
if(empty($duplicate_code_error)) {
|
if(empty($duplicate_code_error)) {
|
||||||
$object->code_client = GETPOST('customer_code', 'alpha');
|
$object->code_client = GETPOST('customer_code', 'alpha');
|
||||||
$object->fournisseur = GETPOST('fournisseur')?GETPOST('fournisseur'):$object->fournisseur;
|
$object->fournisseur = GETPOST('fournisseur')?GETPOST('fournisseur'):$object->fournisseur;
|
||||||
|
$object->code_fournisseur = GETPOST('supplier_code', 'alpha');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setEventMessages($langs->trans('NewCustomerSupplierCodeProposed'),'', 'warnings');
|
setEventMessages($langs->trans('NewCustomerSupplierCodeProposed'),'', 'warnings');
|
||||||
}
|
}
|
||||||
|
|
||||||
$object->code_fournisseur = GETPOST('supplier_code', 'alpha');
|
|
||||||
$object->address = GETPOST('address', 'alpha');
|
$object->address = GETPOST('address', 'alpha');
|
||||||
$object->zip = GETPOST('zipcode', 'alpha');
|
$object->zip = GETPOST('zipcode', 'alpha');
|
||||||
$object->town = GETPOST('town', 'alpha');
|
$object->town = GETPOST('town', 'alpha');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user