diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php
index 48d989d0cdc..eab813653d6 100644
--- a/htdocs/comm/index.php
+++ b/htdocs/comm/index.php
@@ -349,7 +349,12 @@ if (! empty($conf->commande->enabled) && $user->rights->commande->lire)
$companystatic->canvas=$obj->canvas;
print $companystatic->getNomUrl(1,'customer',16);
print '';
- print '
'.price($obj->total_ttc).' | ';
+ if(! empty($conf->global->MAIN_DASHBOARD_USE_TOTAL_HT)) {
+ print ''.price($obj->total_ht).' | ';
+ }
+ else {
+ print ''.price($obj->total_ttc).' | ';
+ }
$i++;
$total += $obj->total_ttc;
}
@@ -432,7 +437,12 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande
$companystatic->canvas=$obj->canvas;
print $companystatic->getNomUrl(1,'supplier',16);
print '';
- print ''.price($obj->total_ttc).' | ';
+ if(! empty($conf->global->MAIN_DASHBOARD_USE_TOTAL_HT)) {
+ print ''.price($obj->total_ht).' | ';
+ }
+ else {
+ print ''.price($obj->total_ttc).' | ';
+ }
$i++;
$total += $obj->total_ttc;
}
@@ -744,7 +754,12 @@ if (! empty($conf->propal->enabled) && $user->rights->propal->lire)
print '';
print '';
print dol_print_date($db->jdate($obj->dp),'day').' | '."\n";
- print ''.price($obj->total_ttc).' | ';
+ if(! empty($conf->global->MAIN_DASHBOARD_USE_TOTAL_HT)) {
+ print ''.price($obj->total_ht).' | ';
+ }
+ else {
+ print ''.price($obj->total_ttc).' | ';
+ }
print ''.$propalstatic->LibStatut($obj->fk_statut,3).' | '."\n";
print ''."\n";
$i++;
@@ -843,7 +858,12 @@ if (! empty($conf->commande->enabled) && $user->rights->commande->lire)
print '';
print '';
print dol_print_date($db->jdate($obj->dp),'day').' | '."\n";
- print ''.price($obj->total_ttc).' | ';
+ if(! empty($conf->global->MAIN_DASHBOARD_USE_TOTAL_HT)) {
+ print ''.price($obj->total_ht).' | ';
+ }
+ else {
+ print ''.price($obj->total_ttc).' | ';
+ }
print ''.$orderstatic->LibStatut($obj->fk_statut,$obj->billed,3).' | '."\n";
print ''."\n";
$i++;