NEW Add accounting account number on product tooltip

This commit is contained in:
Laurent Destailleur 2018-04-08 23:54:04 +02:00
parent 58bc3e5e74
commit ff411ed2e5

View File

@ -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.= '<br><b>' . $langs->trans('ProductAccountancySellCode') . ':</b> '. length_accountg($this->accountancy_code_sell);
$label.= '<br><b>' . $langs->trans('ProductAccountancySellIntraCode') . ':</b> '. length_accountg($this->accountancy_code_sell_export);
$label.= '<br><b>' . $langs->trans('ProductAccountancySellExportCode') . ':</b> '. length_accountg($this->accountancy_code_sell_intra);
}
if (! empty($conf->accounting->enabled) && $this->status_buy)
{
$label.= '<br><b>' . $langs->trans('ProductAccountancyBuyCode') . ':</b> '. 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);