From 52ef6f937b5b9ca96d8f5b7dded4bc0db24ceadf Mon Sep 17 00:00:00 2001 From: MDW Date: Fri, 29 Mar 2024 19:36:16 +0100 Subject: [PATCH] Fix use $societe not undefined $soc # Fix use $societe not undefined $soc Code is referencing undefined $soc, so using $societe instead --- htdocs/fourn/facture/card.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index e5e347d37c4..f21548c0982 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -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; } }