From b18c9603f1c6e903266dec81ab001a3b8e9a0dcd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 10 Feb 2014 01:04:40 +0100 Subject: [PATCH] Fix: Even if accounting module are disabled, we need field. Accounting mdules disabled = we don't need menu+pages+reports features but properties on product may be still used (for example to import/import when using an external accounting software). --- htdocs/product/fiche.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 14c87f75743..7d7890e1dc1 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -895,12 +895,12 @@ else print '
'; } - if (empty($conf->accounting->enabled) && empty($conf->comptabilite->enabled) && empty($conf->accountingexpert->enabled)) + /*if (empty($conf->accounting->enabled) && empty($conf->comptabilite->enabled) && empty($conf->accountingexpert->enabled)) { // Don't show accounting field when accounting id disabled. } else - { + {*/ print ''; // Accountancy_code_sell @@ -916,7 +916,7 @@ else print '
'; print '
'; - } + //} print '
'; @@ -1091,12 +1091,12 @@ else print '
'; - if (empty($conf->accounting->enabled) && empty($conf->comptabilite->enabled) && empty($conf->accountingexpert->enabled)) + /*if (empty($conf->accounting->enabled) && empty($conf->comptabilite->enabled) && empty($conf->accountingexpert->enabled)) { // Don't show accounting field when accounting id disabled. } else - { + {*/ print ''; // Accountancy_code_sell @@ -1112,7 +1112,7 @@ else print '
'; print '
'; - } + //} print '
    '; print '
'; @@ -1218,12 +1218,12 @@ else print ''."\n"; } - if (empty($conf->accounting->enabled) && empty($conf->comptabilite->enabled) && empty($conf->accountingexpert->enabled)) + /*if (empty($conf->accounting->enabled) && empty($conf->comptabilite->enabled) && empty($conf->accountingexpert->enabled)) { // Don't show accounting field when accounting id disabled. } else - { + {*/ // Accountancy sell code print ''.$form->editfieldkey("ProductAccountancySellCode",'accountancy_code_sell',$object->accountancy_code_sell,$object,$user->rights->produit->creer||$user->rights->service->creer,'string').''; print $form->editfieldval("ProductAccountancySellCode",'accountancy_code_sell',$object->accountancy_code_sell,$object,$user->rights->produit->creer||$user->rights->service->creer,'string'); @@ -1233,7 +1233,7 @@ else print ''.$form->editfieldkey("ProductAccountancyBuyCode",'accountancy_code_buy',$object->accountancy_code_buy,$object,$user->rights->produit->creer||$user->rights->service->creer,'string').''; print $form->editfieldval("ProductAccountancyBuyCode",'accountancy_code_buy',$object->accountancy_code_buy,$object,$user->rights->produit->creer||$user->rights->service->creer,'string'); print ''; - } + //} // Status (to sell) print ''.$langs->trans("Status").' ('.$langs->trans("Sell").')';