From 184589dbc09ef8cd1826c1acbf9d2f8e777ded45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 26 Sep 2024 17:18:55 +0200 Subject: [PATCH] fix phan branch 20.0 (#31133) * fix phan branch 20.0 * Update index.php --- htdocs/accountancy/closure/index.php | 4 ++-- htdocs/core/modules/facture/doc/pdf_crabe.modules.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/accountancy/closure/index.php b/htdocs/accountancy/closure/index.php index 2727feef758..43f9179c599 100644 --- a/htdocs/accountancy/closure/index.php +++ b/htdocs/accountancy/closure/index.php @@ -127,11 +127,11 @@ if (empty($reshook)) { if ($generate_bookkeeping_records) { if (!getDolGlobalString('ACCOUNTING_CLOSURE_ACCOUNTING_GROUPS_USED_FOR_BALANCE_SHEET_ACCOUNT')) { $error++; - setEventMessages($langs->trans("ErrorSetupNotComplete"), null, 'errors'); + setEventMessages($langs->trans("ErrorModuleSetupNotComplete"), null, 'errors'); } if (!getDolGlobalString('ACCOUNTING_CLOSURE_ACCOUNTING_GROUPS_USED_FOR_INCOME_STATEMENT')) { $error++; - setEventMessages($langs->trans("ErrorSetupNotComplete"), null, 'errors'); + setEventMessages($langs->trans("ErrorModuleSetupNotComplete"), null, 'errors'); } } diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index e6eb38ee612..026b03ad970 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -2175,7 +2175,7 @@ class pdf_crabe extends ModelePDFFactures if (!empty($carac_client_shipping)) { $posy += $hautcadre; - $hautcadre = $hautcadre - 10; // Height for the shipping address does not need to be as high as main box + $hautcadre -= 10; // Height for the shipping address does not need to be as high as main box // Show shipping frame $pdf->SetXY($posx + 2, $posy - 5);