diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 841d1b1b73a..23ce2ba7f11 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -1476,24 +1476,24 @@ else } // Accountancy sell code - print ''; - print ''; - print '
'; - print $langs->trans("ProductAccountancySellCode"); - print '
'; - print ''; - print length_accountg($object->accountancy_code_sell); - print ''; + if (! empty($conf->accounting->enabled)){ + print ''; + print $langs->trans("ProductAccountancySellCode"); + print ''; + print length_accountg($object->accountancy_code_sell); + print ''; + } + // Accountancy buy code - print ''; - print ''; - print '
'; - print $langs->trans("ProductAccountancyBuyCode"); - print '
'; - print ''; - print length_accountg($object->accountancy_code_buy); - print ''; + if (! empty($conf->accounting->enabled)){ + print ''; + print $langs->trans("ProductAccountancyBuyCode"); + print ''; + print length_accountg($object->accountancy_code_buy); + print ''; + } + // Status (to sell) /*