From ee0dd8b672feb30e0462af97e104265ff8276daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Lukas?= Date: Fri, 26 Sep 2025 23:50:57 +0200 Subject: [PATCH] fix #35503 - Wrong format of buying price in dispatch.php / reception.php (#35504) * Change price calculation method in dispatch.php In output field price should be used instead of price2num, other formatting does not work (esp. when you use German langugae settings) * Format cost price before displaying in input field In output field price should be used, otherwise formatting does not work (esp. when you use German langugae settings) --------- Co-authored-by: Laurent Destailleur --- htdocs/fourn/commande/dispatch.php | 4 ++-- htdocs/reception/card.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index e883fafacf0..65149145219 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -938,9 +938,9 @@ if ($id > 0 || !empty($ref)) { print ''; if (getDolGlobalString('SUPPLIER_ORDER_EDIT_BUYINGPRICE_DURING_RECEIPT')) { // Not tested ! - print $langs->trans("BuyingPrice").': '; + print $langs->trans("BuyingPrice").': '; } else { - print ''; + print ''; } print ''; diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php index f827643d2ea..de85c754bdc 100644 --- a/htdocs/reception/card.php +++ b/htdocs/reception/card.php @@ -1280,7 +1280,7 @@ if ($action == 'create') { if (getDolGlobalString('STOCK_CALCULATE_ON_RECEPTION') || getDolGlobalString('STOCK_CALCULATE_ON_RECEPTION_CLOSE')) { print ''; - print ''; + print ''; print ''; }