From 9ffb6317cf85f707a5c00d86d1cf09bdd376d2c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Fri, 27 Jul 2012 13:54:16 +0200 Subject: [PATCH] Fix: Allows to use a comma decimal separator in supplier invoices payments --- htdocs/fourn/facture/paiement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index 3852c19620d..fa31e9c0a33 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -78,7 +78,7 @@ if ($action == 'add_paiement') if (substr($key,0,7) == 'amount_') { $other_facid = substr($key,7); - $amounts[$other_facid] = $_POST[$key]; + $amounts[$other_facid] = price2num(GETPOST($key)); $total = $total + $amounts[$other_facid]; } }