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
BuyerName=Buyer name
AllProductServicePrices=All product / service prices
BuyingPriceNumShort=Nbr of Buying prices
BuyingPriceNumShort=Supplier prices

View File

@ -829,31 +829,31 @@ else
}
// Number of buy prices
if (! empty($arrayfields['p.numbuyprice']['checked']))
{
print '<td align="right">';
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 '</td>';
}
if (! empty($arrayfields['p.numbuyprice']['checked']))
{
print '<td align="right">';
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 '</td>';
}
// WAP
if (! empty($arrayfields['p.pmp']['checked']))
{
print '<td align="right">';
if ($obj->tobuy)
{
print price($product_static->pmp, 1, $langs, 1, 2, 1, 'auto');
}
print '</td>';
}
if (! empty($arrayfields['p.pmp']['checked']))
{
print '<td class="nowrap" align="right">';
if ($obj->tobuy)
{
print price($product_static->pmp, 1, $langs, 1, 2, 2, 'auto');
}
print '</td>';
}
// Limit alert
if (! empty($arrayfields['p.seuil_stock_alerte']['checked']))
{