Fix use $societe not undefined $soc
# Fix use $societe not undefined $soc Code is referencing undefined $soc, so using $societe instead
This commit is contained in:
parent
c87f24e3f4
commit
52ef6f937b
1 changed files with 3 additions and 2 deletions
|
|
@ -2121,6 +2121,7 @@ if ($action == 'create') {
|
|||
$classname = 'CommandeFournisseur';
|
||||
}
|
||||
$objectsrc = new $classname($db);
|
||||
'@phan-var-force Project|Commande|Propal|Contrat|CommandeFournisseur|CommonObject $objectsrc';
|
||||
$objectsrc->fetch($originid);
|
||||
$objectsrc->fetch_thirdparty();
|
||||
|
||||
|
|
@ -2222,8 +2223,8 @@ if ($action == 'create') {
|
|||
$datetmp = dol_mktime(12, 0, 0, GETPOSTINT('echmonth'), GETPOSTINT('echday'), GETPOSTINT('echyear'));
|
||||
$datedue = ($datetmp == '' ? -1 : $datetmp);
|
||||
|
||||
if (isModEnabled("multicurrency") && !empty($soc->multicurrency_code)) {
|
||||
$currency_code = $soc->multicurrency_code;
|
||||
if (isModEnabled("multicurrency") && !empty($societe->multicurrency_code)) {
|
||||
$currency_code = $societe->multicurrency_code;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue