diff --git a/htdocs/compta/dons/index.php b/htdocs/compta/dons/index.php
index bc258dec541..bc21b31a37c 100644
--- a/htdocs/compta/dons/index.php
+++ b/htdocs/compta/dons/index.php
@@ -181,8 +181,8 @@ if ($resql)
print '
';
print $obj->societe;
- print ($obj->societe && $obj->nom?' / ':'');
- print dolGetFirstLastname($obj->nom,$obj->firstname);
+ print ($obj->societe && ($obj->lastname || $obj->firstname)?' / ':'');
+ print dolGetFirstLastname($obj->lastname,$obj->firstname);
print ' | ';
print '';
diff --git a/htdocs/compta/tva/quadri_detail.php b/htdocs/compta/tva/quadri_detail.php
index b39befd8ad6..82585b191ac 100644
--- a/htdocs/compta/tva/quadri_detail.php
+++ b/htdocs/compta/tva/quadri_detail.php
@@ -425,14 +425,14 @@ else
print ' | ';
$temp_ht=$fields['totalht'];
if ($type == 1) $temp_ht=$fields['totalht']*$ratiopaymentinvoice;
- print price(price2num($temp_ht,'MT'));
+ print price(price2num($temp_ht,'MT'),1);
print ' | ';
// VAT
print '';
$temp_vat=$fields['vat'];
if ($type == 1) $temp_vat=$fields['vat']*$ratiopaymentinvoice;
- print price(price2num($temp_vat,'MT'));
+ print price(price2num($temp_vat,'MT'),1);
//print price($fields['vat']);
print ' | ';
print '';
@@ -576,14 +576,14 @@ else
print '';
$temp_ht=$fields['totalht'];
if ($type == 1) $temp_ht=$fields['totalht']*$ratiopaymentinvoice;
- print price(price2num($temp_ht,'MT'));
+ print price(price2num($temp_ht,'MT'),1);
print ' | ';
// VAT
print '';
$temp_vat=$fields['vat'];
if ($type == 1) $temp_vat=$fields['vat']*$ratiopaymentinvoice;
- print price(price2num($temp_vat,'MT'));
+ print price(price2num($temp_vat,'MT'),1);
//print price($fields['vat']);
print ' | ';
print '';
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 4d082960d5d..9f2d7bea180 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -1625,13 +1625,13 @@ class Form
if ($objp->custprice_base_type == 'HT')
{
- $opt.= price($objp->custprice,1).' '.$currencytext.' '.$langs->trans("HT");
- $outval.= price($objp->custprice,1).' '.$currencytextnoent.' '.$langs->transnoentities("HT");
+ $opt.= price($objp->custprice,1,$langs,0,0,-1,$conf->currency).' '.$langs->trans("HT");
+ $outval.= price($objp->custprice,0,$langs,0,0,-1,$conf->currency).' '.$langs->transnoentities("HT");
}
else
{
- $opt.= price($objp->custprice_ttc,1).' '.$currencytext.' '.$langs->trans("TTC");
- $outval.= price($objp->custprice_ttc,1).' '.$currencytextnoent.' '.$langs->transnoentities("TTC");
+ $opt.= price($objp->custprice_ttc,1,$langs,0,0,-1,$conf->currency).' '.$langs->trans("TTC");
+ $outval.= price($objp->custprice_ttc,0,$langs,0,0,-1,$conf->currency).' '.$langs->transnoentities("TTC");
}
$outprice_ht=price($objp->custprice);
diff --git a/htdocs/product/stock/fiche.php b/htdocs/product/stock/fiche.php
index c87b3a06585..6949d29cf8e 100644
--- a/htdocs/product/stock/fiche.php
+++ b/htdocs/product/stock/fiche.php
@@ -443,11 +443,11 @@ else
{
$pricemin=$objp->price;
print '';
- print price(price2num($pricemin,'MU'));
+ print price(price2num($pricemin,'MU'),1);
print ' | ';
// Total sell min
print '';
- print price(price2num($pricemin*$objp->value,'MT'));
+ print price(price2num($pricemin*$objp->value,'MT'),1);
print ' | ';
}
$totalvaluesell+=price2num($pricemin*$objp->value,'MT');
diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php
index 1fd34c65c2d..d8f1418bb29 100644
--- a/htdocs/product/stock/product.php
+++ b/htdocs/product/stock/product.php
@@ -627,11 +627,11 @@ if ($resql)
print ''.(price2num($obj->pmp)?price(price2num($obj->pmp*$obj->reel,'MT')):'').' | '; // Ditto : Show PMP from movement or from product
// Sell price
print '';
- if (empty($conf->global->PRODUIT_MULTI_PRICES)) print price(price2num($product->price,'MU'));
+ if (empty($conf->global->PRODUIT_MULTI_PRICES)) print price(price2num($product->price,'MU'),1);
else print $langs->trans("Variable");
print ' | '; // Ditto : Show PMP from movement or from product
print '';
- if (empty($conf->global->PRODUIT_MULTI_PRICES)) print price(price2num($product->price*$obj->reel,'MT')).' | '; // Ditto : Show PMP from movement or from product
+ if (empty($conf->global->PRODUIT_MULTI_PRICES)) print price(price2num($product->price*$obj->reel,'MT'),1).''; // Ditto : Show PMP from movement or from product
else print $langs->trans("Variable");
print ''; ;
$total += $obj->reel;
@@ -661,14 +661,14 @@ print '';
print ($totalwithpmp?price($totalvalue/$totalwithpmp):' ');
print ' | ';
print '';
-print price(price2num($totalvalue,'MT'));
+print price(price2num($totalvalue,'MT'),1);
print ' | ';
print '';
-if (empty($conf->global->PRODUIT_MULTI_PRICES)) print ($total?price($totalvaluesell/$total):' ');
+if (empty($conf->global->PRODUIT_MULTI_PRICES)) print ($total?price($totalvaluesell/$total,1):' ');
else print $langs->trans("Variable");
print ' | ';
print '';
-if (empty($conf->global->PRODUIT_MULTI_PRICES)) print price(price2num($totalvaluesell,'MT'));
+if (empty($conf->global->PRODUIT_MULTI_PRICES)) print price(price2num($totalvaluesell,'MT'),1);
else print $langs->trans("Variable");
print ' | ';
print "";
diff --git a/htdocs/product/stock/valo.php b/htdocs/product/stock/valo.php
index e7d782ae5e0..e2899e4e465 100644
--- a/htdocs/product/stock/valo.php
+++ b/htdocs/product/stock/valo.php
@@ -108,12 +108,12 @@ if ($result)
print ''.$objp->lieu.' | ';
// PMP value
print '';
- if (price2num($objp->estimatedvalue,'MT')) print price(price2num($objp->estimatedvalue,'MT'));
+ if (price2num($objp->estimatedvalue,'MT')) print price(price2num($objp->estimatedvalue,'MT'),1);
else print '';
print ' | ';
// Selling value
print '';
- if (empty($conf->global->PRODUIT_MULTIPRICES)) print price(price2num($objp->sellvalue,'MT'));
+ if (empty($conf->global->PRODUIT_MULTIPRICES)) print price(price2num($objp->sellvalue,'MT'),1);
else print $langs->trans("Variable");
print ' | ';
// Status