From 265aaf36cfbd0178b425b8b99dc739bca7399bf6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 23 Jan 2024 19:14:47 +0100 Subject: [PATCH] Update bookkeeping.class.php --- htdocs/accountancy/class/bookkeeping.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/class/bookkeeping.class.php b/htdocs/accountancy/class/bookkeeping.class.php index 7eddb596e58..fc3967f0225 100644 --- a/htdocs/accountancy/class/bookkeeping.class.php +++ b/htdocs/accountancy/class/bookkeeping.class.php @@ -1366,7 +1366,7 @@ class BookKeeping extends CommonObject $this->debit = (float) price2num($this->debit, 'MT'); $this->credit = (float) price2num($this->credit, 'MT'); - $this->montant = price2num($this->montant, 'MT'); + $this->montant = (float) price2num($this->montant, 'MT'); // Check parameters // Put here code to add a control on parameters values