From ff411ed2e5b71b2207db112fadb1d84c6bcb2617 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 8 Apr 2018 23:54:04 +0200 Subject: [PATCH] NEW Add accounting account number on product tooltip --- htdocs/product/class/product.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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);