diff --git a/htdocs/product/barcode.php b/htdocs/product/barcode.php index d343e7ea783..bb83ab3e790 100644 --- a/htdocs/product/barcode.php +++ b/htdocs/product/barcode.php @@ -71,8 +71,17 @@ print ''; print ''.$langs->trans("Label").''.$product->libelle.''; print ''; -// Prix -print ''.$langs->trans("SellingPrice").''.price($product->price).''; + // Prix + print ''.$langs->trans("SellingPrice").''; + if ($product->price_base_type == 'TTC') + { + print price($product->price_ttc).' '.$langs->trans($product->price_base_type); + } + else + { + print price($product->price).' '.$langs->trans($product->price_base_type); + } + print ''; // Statut print ''.$langs->trans("Status").''; diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 2c9196b548f..9f0991af1c3 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -126,13 +126,21 @@ if ($_GET["id"] || $_GET["ref"]) print ''.$langs->trans("Label").''.$product->libelle.''; print ''; - // Prix - print ''.$langs->trans("SellingPrice").''.price($product->price).''; - print ''; + // Prix + print ''.$langs->trans("SellingPrice").''; + if ($product->price_base_type == 'TTC') + { + print price($product->price_ttc).' '.$langs->trans($product->price_base_type); + } + else + { + print price($product->price).' '.$langs->trans($product->price_base_type); + } + print ''; // Statut print ''.$langs->trans("Status").''; - print $product->getLibStatut(2); + print $product->getLibStatut(2); print ''; // Stock