From 782be2ac3797c3f5d5fb4d7f00d5f3e82f93690b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 28 Jan 2020 17:50:08 +0100 Subject: [PATCH] FIX Invert isSellerInEEC and isBuyerInEEC --- htdocs/accountancy/supplier/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/accountancy/supplier/index.php b/htdocs/accountancy/supplier/index.php index 8cb752aef4c..eb81e4909d9 100644 --- a/htdocs/accountancy/supplier/index.php +++ b/htdocs/accountancy/supplier/index.php @@ -142,13 +142,13 @@ if ($action == 'validatehistory') { } else { $num_lines = $db->num_rows($result); - $isSellerInEEC = isInEEC($mysoc); + $isBuyerInEEC = isInEEC($mysoc); $i = 0; while ($i < min($num_lines, 10000)) { // No more than 10000 at once $objp = $db->fetch_object($result); - $isBuyerInEEC = isInEEC($objp); + $isSellerInEEC = isInEEC($objp); // Search suggested account for product/service $suggestedaccountingaccountfor = '';