From 989084e4dece898320c368ac34f2561f8cb245eb Mon Sep 17 00:00:00 2001 From: fappels Date: Fri, 30 Jun 2017 10:56:05 +0200 Subject: [PATCH] WAP always 2 decimals --- htdocs/langs/en_US/suppliers.lang | 2 +- htdocs/product/list.php | 46 +++++++++++++++---------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/htdocs/langs/en_US/suppliers.lang b/htdocs/langs/en_US/suppliers.lang index 079b588167f..28c5fe39d0d 100644 --- a/htdocs/langs/en_US/suppliers.lang +++ b/htdocs/langs/en_US/suppliers.lang @@ -43,4 +43,4 @@ NotTheGoodQualitySupplier=Wrong quality ReputationForThisProduct=Reputation BuyerName=Buyer name AllProductServicePrices=All product / service prices -BuyingPriceNumShort=Nbr of Buying prices +BuyingPriceNumShort=Supplier prices diff --git a/htdocs/product/list.php b/htdocs/product/list.php index 50bd61fad17..cb31de75892 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -829,31 +829,31 @@ else } // Number of buy prices - if (! empty($arrayfields['p.numbuyprice']['checked'])) - { - print ''; - if ($obj->tobuy) - { - if (($productFournList = $product_fourn->list_product_fournisseur_price($product_fourn->id)) > 0) - { - $htmltext=$product_fourn->display_price_product_fournisseur(1, 1, 0, 1, $productFournList); - print $form->textwithpicto(count($productFournList),$htmltext); - } - } - print ''; - } + if (! empty($arrayfields['p.numbuyprice']['checked'])) + { + print ''; + if ($obj->tobuy) + { + if (($productFournList = $product_fourn->list_product_fournisseur_price($product_fourn->id)) > 0) + { + $htmltext=$product_fourn->display_price_product_fournisseur(1, 1, 0, 1, $productFournList); + print $form->textwithpicto(count($productFournList),$htmltext); + } + } + print ''; + } // WAP - if (! empty($arrayfields['p.pmp']['checked'])) - { - print ''; - if ($obj->tobuy) - { - print price($product_static->pmp, 1, $langs, 1, 2, 1, 'auto'); - } - print ''; - } - + if (! empty($arrayfields['p.pmp']['checked'])) + { + print ''; + if ($obj->tobuy) + { + print price($product_static->pmp, 1, $langs, 1, 2, 2, 'auto'); + } + print ''; + } + // Limit alert if (! empty($arrayfields['p.seuil_stock_alerte']['checked'])) {