From 00bf293b33041def533e1f19e59f23559f76fcb7 Mon Sep 17 00:00:00 2001 From: FLIO Date: Tue, 29 Nov 2022 22:50:07 +0100 Subject: [PATCH 1/2] Fix(scrutinizer) https://scrutinizer-ci.com/g/Dolibarr/dolibarr/issues/develop/files/htdocs/loan/info.php?selectedLabels%5B0%5D=9&selectedSeverities%5B0%5D=10&orderField=lastFound&order=desc&honorSelectedPaths=0 --- htdocs/loan/class/loan.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/loan/class/loan.class.php b/htdocs/loan/class/loan.class.php index 81a00904794..03deb595000 100644 --- a/htdocs/loan/class/loan.class.php +++ b/htdocs/loan/class/loan.class.php @@ -66,6 +66,7 @@ class Loan extends CommonObject public $account_capital; public $account_insurance; public $account_interest; + public $total_paid; /** * @var integer|string date_creation From 66de178b463070bb1e227bdea8a46f23f9b61fb7 Mon Sep 17 00:00:00 2001 From: FLIO Date: Wed, 30 Nov 2022 15:52:33 +0100 Subject: [PATCH 2/2] Fix(scrutinizer) --- htdocs/loan/class/loan.class.php | 1 - htdocs/loan/info.php | 2 -- 2 files changed, 3 deletions(-) diff --git a/htdocs/loan/class/loan.class.php b/htdocs/loan/class/loan.class.php index 03deb595000..81a00904794 100644 --- a/htdocs/loan/class/loan.class.php +++ b/htdocs/loan/class/loan.class.php @@ -66,7 +66,6 @@ class Loan extends CommonObject public $account_capital; public $account_insurance; public $account_interest; - public $total_paid; /** * @var integer|string date_creation diff --git a/htdocs/loan/info.php b/htdocs/loan/info.php index 49618d0f46c..188a61c61e6 100644 --- a/htdocs/loan/info.php +++ b/htdocs/loan/info.php @@ -102,8 +102,6 @@ $morehtmlref .= ''; $linkback = ''.$langs->trans("BackToList").''; -$object->totalpaid = $totalpaid; // To give a chance to dol_banner_tab to use already paid amount to show correct status - dol_banner_tab($object, 'id', $linkback, 1, 'rowid', 'ref', $morehtmlref, '', 0, '', $morehtmlright); print '
';