diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php
index 12172342f2a..cd79259c9a2 100644
--- a/htdocs/product/class/product.class.php
+++ b/htdocs/product/class/product.class.php
@@ -3519,6 +3519,17 @@ class Product extends CommonObject
{
//
}
+ if (! empty($conf->accounting->enabled) && $this->status)
+ {
+ include_once DOL_DOCUMENT_ROOT.'/core/lib/accounting.lib.php';
+ $label.= '
' . $langs->trans('ProductAccountancySellCode') . ': '. length_accountg($this->accountancy_code_sell);
+ $label.= '
' . $langs->trans('ProductAccountancySellIntraCode') . ': '. length_accountg($this->accountancy_code_sell_export);
+ $label.= '
' . $langs->trans('ProductAccountancySellExportCode') . ': '. length_accountg($this->accountancy_code_sell_intra);
+ }
+ if (! empty($conf->accounting->enabled) && $this->status_buy)
+ {
+ $label.= '
' . $langs->trans('ProductAccountancyBuyCode') . ': '. length_accountg($this->accountancy_code_buy);
+ }
if (! empty($this->entity))
{
$tmpphoto = $this->show_photos('product', $conf->product->multidir_output[$this->entity], 1, 1, 0, 0, 0, 80);