From 87f38c251df8d68a08e9c4a32386841cffe400d4 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Mon, 28 Dec 2020 03:43:52 +0100 Subject: [PATCH] Fix --- htdocs/societe/card.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 735d221f312..c72c905702a 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -1573,22 +1573,14 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) // Accountancy_code_sell print ''.$langs->trans("ProductAccountancySellCode").''; print ''; - if ($type == 0) { - $accountancy_code_sell = GETPOST('accountancy_code_sell', 'alpha'); - } else { - $accountancy_code_sell = GETPOST('accountancy_code_sell', 'alpha'); - } + $accountancy_code_sell = GETPOST('accountancy_code_sell', 'alpha'); print $formaccounting->select_account($accountancy_code_sell, 'accountancy_code_sell', 1, null, 1, 1, ''); print ''; // Accountancy_code_buy print ''.$langs->trans("ProductAccountancyBuyCode").''; print ''; - if ($type == 0) { - $accountancy_code_buy = GETPOST('accountancy_code_buy', 'alpha'); - } else { - $accountancy_code_buy = GETPOST('accountancy_code_buy', 'alpha'); - } + $accountancy_code_buy = GETPOST('accountancy_code_buy', 'alpha'); print $formaccounting->select_account($accountancy_code_buy, 'accountancy_code_buy', 1, null, 1, 1, ''); print ''; }