From cfde887b5cc9dd1d3cc05aa3ad4f9af400d8f85a Mon Sep 17 00:00:00 2001 From: Irvine Fleith Date: Tue, 1 Oct 2024 16:25:30 +0200 Subject: [PATCH 1/2] FIX : Arrondi --- htdocs/compta/stats/cabyprodserv.php | 2 +- htdocs/core/lib/product.lib.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/compta/stats/cabyprodserv.php b/htdocs/compta/stats/cabyprodserv.php index 950c9e1ef2f1c..9db36d483f27b 100644 --- a/htdocs/compta/stats/cabyprodserv.php +++ b/htdocs/compta/stats/cabyprodserv.php @@ -503,7 +503,7 @@ // Quantity print ''; - print price($qty[$key], 1, $langs, 0, 0); + print floatval($qty[$key]); print ''; // Percent; diff --git a/htdocs/core/lib/product.lib.php b/htdocs/core/lib/product.lib.php index 0d42770253e1e..d5a26691b5951 100644 --- a/htdocs/core/lib/product.lib.php +++ b/htdocs/core/lib/product.lib.php @@ -452,7 +452,7 @@ function show_stats_for_company($product, $socid) print ''; print $product->stats_propale['nb']; print ''; - print price($product->stats_propale['qty'], 1, $langs, 0, 0); + print floatval($product->stats_propale['qty']); print ''; print ''; } @@ -471,7 +471,7 @@ function show_stats_for_company($product, $socid) print ''; print $product->stats_proposal_supplier['nb']; print ''; - print price($product->stats_proposal_supplier['qty'], 1, $langs, 0, 0); + print floatval($product->stats_proposal_supplier['qty']); print ''; print ''; } @@ -490,7 +490,7 @@ function show_stats_for_company($product, $socid) print ''; print $product->stats_commande['nb']; print ''; - print price($product->stats_commande['qty'], 1, $langs, 0, 0); + print floatval($product->stats_commande['qty']); print ''; print ''; } @@ -509,7 +509,7 @@ function show_stats_for_company($product, $socid) print ''; print $product->stats_commande_fournisseur['nb']; print ''; - print price($product->stats_commande_fournisseur['qty'], 1, $langs, 0, 0); + print floatval($product->stats_commande_fournisseur['qty']); print ''; print ''; } @@ -528,7 +528,7 @@ function show_stats_for_company($product, $socid) print ''; print $product->stats_facture['nb']; print ''; - print price($product->stats_facture['qty'], 1, $langs, 0, 0); + print floatval($product->stats_facture['qty']); print ''; print ''; } @@ -566,7 +566,7 @@ function show_stats_for_company($product, $socid) print ''; print $product->stats_facture_fournisseur['nb']; print ''; - print price($product->stats_facture_fournisseur['qty'], 1, $langs, 0, 0); + print floatval($product->stats_facture_fournisseur['qty']); print ''; print ''; } @@ -586,7 +586,7 @@ function show_stats_for_company($product, $socid) print ''; print $product->stats_contrat['nb']; print ''; - print price($product->stats_contrat['qty'], 1, $langs, 0, 0); + print floatval($product->stats_contrat['qty']); print ''; print ''; } From af4a087f1aa0886395ef9479cebd34aae3ab75d2 Mon Sep 17 00:00:00 2001 From: Irvine Fleith Date: Tue, 1 Oct 2024 16:39:17 +0200 Subject: [PATCH 2/2] ChangeLog --- ChangeLog_CoObjectifs21 | 1 + 1 file changed, 1 insertion(+) create mode 100644 ChangeLog_CoObjectifs21 diff --git a/ChangeLog_CoObjectifs21 b/ChangeLog_CoObjectifs21 new file mode 100644 index 0000000000000..e1e8193fe50e5 --- /dev/null +++ b/ChangeLog_CoObjectifs21 @@ -0,0 +1 @@ +FIX : DA025540 Replaced price by float *01/10/2024*