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:
MDW 2024-03-29 19:36:16 +01:00
parent c87f24e3f4
commit 52ef6f937b
No known key found for this signature in database

View file

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