New release

Leandro Silva [11-18-18 - 22:53]
New release
Filename
LeoGuildManager.txt
LeoGuildManagerInit.lua
LeoGuildManagerUI.lua
diff --git a/LeoGuildManager.txt b/LeoGuildManager.txt
index ef3824f..c26a3ba 100644
--- a/LeoGuildManager.txt
+++ b/LeoGuildManager.txt
@@ -1,7 +1,7 @@
 ## Title: Leo's Guild Manager
 ## APIVersion: 100024 100025
-## Version: 1.1.6
-## AddOnVersion: 116
+## Version: 1.1.7
+## AddOnVersion: 117
 ## Author: |c39B027@LeandroSilva|r
 ## SavedVariables: LeoGuildManagerGlobalData LeoGuildManagerScanData
 ## OptionalDependsOn: LibStub LibFeedback LibAddonMenu-2.0
diff --git a/LeoGuildManagerInit.lua b/LeoGuildManagerInit.lua
index 996e35a..3daf705 100644
--- a/LeoGuildManagerInit.lua
+++ b/LeoGuildManagerInit.lua
@@ -4,7 +4,7 @@ LeoGuildManagerUI = LeoGuildManagerUI or {}

 LeoGuildManager.name = "LeoGuildManager"
 LeoGuildManager.displayName = "Leo's Guild Manager"
-LeoGuildManager.version = "1.1.6"
+LeoGuildManager.version = "1.1.7"
 LeoGuildManager.chatPrefix = "|c39B027" .. LeoGuildManager.name .. "|r: "

 LeoGuildManager.TAB_PURGE = "Purge"
diff --git a/LeoGuildManagerUI.lua b/LeoGuildManagerUI.lua
index f4cf71f..e896422 100644
--- a/LeoGuildManagerUI.lua
+++ b/LeoGuildManagerUI.lua
@@ -560,7 +560,7 @@ local function getSalesData(memberName, cycle, start, finish)
         return ArkadiusTradeTools.Modules.Sales:GetPurchasesAndSalesVolumes(guildName, memberName, start, finish)
     end

-    return 0
+    return 0, 0
 end

 local function getStartFinishFromCycle(cycle)
@@ -641,7 +641,7 @@ function LeoGuildManager.ListPurge()
         for i = 1, #LeoGuildManager.members do
             local name = LeoGuildManager.members[i].name
             local purchase, sale = getSalesData(name, cycle, start, finish)
-            if sale > 0 then
+            if sale ~= nil and sale > 0 then
                 LeoGuildManager.AddSale(name, sale)
             end
             if purchase > 0 then
@@ -767,7 +767,7 @@ function LeoGuildManagerUI.TooltipSales(control, visible)

                 if start ~= nil and finish ~= nil then
                     local _, sale = getSalesData(name, cycleId, start, finish)
-                    if sale > 0 then
+                    if sale ~= nil and sale > 0 then
                         addLine(InformationTooltip, cycleData.name .. ": |c"..LeoGuildManager.color.hex.white.. LeoGuildManager.formatNumber(sale).."|r")
                     end
                 end