From fc2673102592ea0aaa79d9f40791ad3cb166354d Mon Sep 17 00:00:00 2001 From: sonikf <93765174+sonikf@users.noreply.github.com> Date: Tue, 12 Sep 2023 21:27:22 +0300 Subject: [PATCH] fix CI errors --- htdocs/societe/card.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index ca92652ef09..2c55b0e070d 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -2514,9 +2514,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { print "function CheckVAT(a) {\n"; if ($mysoc->country_code == 'GR' && $object->country_code == 'GR') { print "GRVAT(a,'{$u}','{$p}','{$myafm}');\n"; - } - else { print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a, '".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', ".$widthpopup.", ".$heightpopup.");\n"; - } + } else { + print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a, '".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', ".$widthpopup.", ".$heightpopup.");\n"; + } print "}\n"; print ''; print "\n"; @@ -2986,8 +2986,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { print "function CheckVAT(a) {\n"; if ($mysoc->country_code == 'GR' && $object->country_code == 'GR') { print "GRVAT(a,'{$u}','{$p}','{$myafm}');\n"; - } - else { print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a, '".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', ".$widthpopup.", ".$heightpopup.");\n"; + } else { + print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a, '".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', ".$widthpopup.", ".$heightpopup.");\n"; } print "}\n"; print '';