From 8e6ac1ee8ffaee909d47e41b56f33fbfa6def2aa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 19 Jan 2024 16:08:03 +0100 Subject: [PATCH] Update card.php --- htdocs/commande/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 731ae555ba9..cf098c7da0d 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -307,7 +307,7 @@ if (empty($reshook)) { $object->fk_incoterms = GETPOSTINT('incoterm_id'); $object->location_incoterms = GETPOST('location_incoterms', 'alpha'); $object->multicurrency_code = GETPOST('multicurrency_code', 'alpha'); - $object->multicurrency_tx = GETPOSTINT('originmulticurrency_tx'); + $object->multicurrency_tx = (float) price2num(GETPOST('originmulticurrency_tx')); // Fill array 'array_options' with data from add form if (!$error) { $ret = $extrafields->setOptionalsFromPost(null, $object);