WAP always 2 decimals

This commit is contained in:
fappels 2017-06-30 10:56:05 +02:00
parent 574590a598
commit 989084e4de
2 changed files with 24 additions and 24 deletions

View File

@ -43,4 +43,4 @@ NotTheGoodQualitySupplier=Wrong quality
ReputationForThisProduct=Reputation ReputationForThisProduct=Reputation
BuyerName=Buyer name BuyerName=Buyer name
AllProductServicePrices=All product / service prices AllProductServicePrices=All product / service prices
BuyingPriceNumShort=Nbr of Buying prices BuyingPriceNumShort=Supplier prices

View File

@ -829,31 +829,31 @@ else
} }
// Number of buy prices // Number of buy prices
if (! empty($arrayfields['p.numbuyprice']['checked'])) if (! empty($arrayfields['p.numbuyprice']['checked']))
{ {
print '<td align="right">'; print '<td align="right">';
if ($obj->tobuy) if ($obj->tobuy)
{ {
if (($productFournList = $product_fourn->list_product_fournisseur_price($product_fourn->id)) > 0) if (($productFournList = $product_fourn->list_product_fournisseur_price($product_fourn->id)) > 0)
{ {
$htmltext=$product_fourn->display_price_product_fournisseur(1, 1, 0, 1, $productFournList); $htmltext=$product_fourn->display_price_product_fournisseur(1, 1, 0, 1, $productFournList);
print $form->textwithpicto(count($productFournList),$htmltext); print $form->textwithpicto(count($productFournList),$htmltext);
} }
} }
print '</td>'; print '</td>';
} }
// WAP // WAP
if (! empty($arrayfields['p.pmp']['checked'])) if (! empty($arrayfields['p.pmp']['checked']))
{ {
print '<td align="right">'; print '<td class="nowrap" align="right">';
if ($obj->tobuy) if ($obj->tobuy)
{ {
print price($product_static->pmp, 1, $langs, 1, 2, 1, 'auto'); print price($product_static->pmp, 1, $langs, 1, 2, 2, 'auto');
} }
print '</td>'; print '</td>';
} }
// Limit alert // Limit alert
if (! empty($arrayfields['p.seuil_stock_alerte']['checked'])) if (! empty($arrayfields['p.seuil_stock_alerte']['checked']))
{ {