FIX Invert isSellerInEEC and isBuyerInEEC

This commit is contained in:
Laurent Destailleur 2020-01-28 17:50:08 +01:00
parent bffdc63ec6
commit 782be2ac37

View File

@ -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 = '';