From 4ce313d864d4038700cec8d4e4d02792d0f34f1c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 19 Apr 2018 23:52:37 +0200 Subject: [PATCH] NEW Can filter on country and taxid into the binding page --- htdocs/accountancy/customer/lines.php | 69 +++++++++++++++------------ htdocs/accountancy/customer/list.php | 53 +++++++++++++------- htdocs/accountancy/supplier/lines.php | 52 ++++++++++++-------- htdocs/accountancy/supplier/list.php | 55 ++++++++++++++------- 4 files changed, 146 insertions(+), 83 deletions(-) diff --git a/htdocs/accountancy/customer/lines.php b/htdocs/accountancy/customer/lines.php index e696b4774d1..d148bf8579b 100644 --- a/htdocs/accountancy/customer/lines.php +++ b/htdocs/accountancy/customer/lines.php @@ -116,10 +116,10 @@ if (is_array($changeaccount) && count($changeaccount) > 0) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Account")), null, 'errors'); } - $db->begin(); - if (! $error) { + $db->begin(); + $sql1 = "UPDATE " . MAIN_DB_PREFIX . "facturedet as l"; $sql1 .= " SET l.fk_code_ventilation=" . (GETPOST('account_parent','int') > 0 ? GETPOST('account_parent','int') : '0'); $sql1 .= ' WHERE l.rowid IN (' . implode(',', $changeaccount) . ')'; @@ -173,20 +173,24 @@ print '