diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 6b106e68853..735d221f312 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1574,9 +1574,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
print '
| '.$langs->trans("ProductAccountancySellCode").' | ';
print '';
if ($type == 0) {
- $accountancy_code_sell = (GETPOST('accountancy_code_sell', 'alpha')?(GETPOST('accountancy_code_sell', 'alpha')):$conf->global->ACCOUNTING_PRODUCT_SOLD_ACCOUNT);
+ $accountancy_code_sell = GETPOST('accountancy_code_sell', 'alpha');
} else {
- $accountancy_code_sell = (GETPOST('accountancy_code_sell', 'alpha')?(GETPOST('accountancy_code_sell', 'alpha')):$conf->global->ACCOUNTING_SERVICE_SOLD_ACCOUNT);
+ $accountancy_code_sell = GETPOST('accountancy_code_sell', 'alpha');
}
print $formaccounting->select_account($accountancy_code_sell, 'accountancy_code_sell', 1, null, 1, 1, '');
print ' |
';
@@ -1585,9 +1585,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
print '| '.$langs->trans("ProductAccountancyBuyCode").' | ';
print '';
if ($type == 0) {
- $accountancy_code_buy = (GETPOST('accountancy_code_buy', 'alpha')?(GETPOST('accountancy_code_buy', 'alpha')):$conf->global->ACCOUNTING_PRODUCT_BUY_ACCOUNT);
+ $accountancy_code_buy = GETPOST('accountancy_code_buy', 'alpha');
} else {
- $accountancy_code_buy = (GETPOST('accountancy_code_buy', 'alpha')?(GETPOST('accountancy_code_buy', 'alpha')):$conf->global->ACCOUNTING_SERVICE_BUY_ACCOUNT);
+ $accountancy_code_buy = GETPOST('accountancy_code_buy', 'alpha');
}
print $formaccounting->select_account($accountancy_code_buy, 'accountancy_code_buy', 1, null, 1, 1, '');
print ' |
';