From 009746ab79e5e9b1af99efc7def33ad70214bb9d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Mar 2020 19:59:18 +0100 Subject: [PATCH] Invert seller and buyer --- htdocs/accountancy/supplier/list.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/accountancy/supplier/list.php b/htdocs/accountancy/supplier/list.php index a747985096e..6f4ad18b283 100644 --- a/htdocs/accountancy/supplier/list.php +++ b/htdocs/accountancy/supplier/list.php @@ -411,6 +411,10 @@ if ($result) { $facturefourn_static = new FactureFournisseur($db); $product_static = new Product($db); + $isBuyerInEEC = isInEEC($mysoc); + + $accountingaccount_codetotid_cache = array(); + while ($i < min($num_lines, $limit)) { $objp = $db->fetch_object($result); @@ -440,7 +444,7 @@ if ($result) { $code_buy_p_notset = ''; $objp->aarowid_suggest = ''; // Will be set later - $isBuyerInEEC = isInEEC($objp); + $isSellerInEEC = isInEEC($objp); $suggestedaccountingaccountbydefaultfor = ''; if ($objp->type_l == 1) {