New release

Leandro Silva [11-18-18 - 08:27]
New release
Filename
LeoGuildManager.lua
LeoGuildManager.txt
LeoGuildManagerInit.lua
LeoGuildManagerUI.lua
diff --git a/LeoGuildManager.lua b/LeoGuildManager.lua
index 4dc504a..8608798 100644
--- a/LeoGuildManager.lua
+++ b/LeoGuildManager.lua
@@ -358,7 +358,7 @@ function LeoGuildManager.CreatePurgeDescription(guildName)

     local tickets = LeoGuildManager.globalData.settings.guilds[guildName].tickets
     local sales = LeoGuildManager.globalData.settings.guilds[guildName].sales
-    local purchases = LeoGuildManager.globalData.settings.guilds[guildName].purchases
+    local purchases = LeoGuildManager.GetPurgePurchases(guildName)
     local inactivity = LeoGuildManager.globalData.settings.guilds[guildName].inactivity
     local ignoreRank = LeoGuildManager.globalData.settings.guilds[guildName].ignoreRank
     local ignoreNew = LeoGuildManager.globalData.settings.guilds[guildName].ignoreNew
diff --git a/LeoGuildManager.txt b/LeoGuildManager.txt
index 4ea4d66..ef3824f 100644
--- a/LeoGuildManager.txt
+++ b/LeoGuildManager.txt
@@ -1,7 +1,7 @@
 ## Title: Leo's Guild Manager
 ## APIVersion: 100024 100025
-## Version: 1.1.5
-## AddOnVersion: 115
+## Version: 1.1.6
+## AddOnVersion: 116
 ## Author: |c39B027@LeandroSilva|r
 ## SavedVariables: LeoGuildManagerGlobalData LeoGuildManagerScanData
 ## OptionalDependsOn: LibStub LibFeedback LibAddonMenu-2.0
diff --git a/LeoGuildManagerInit.lua b/LeoGuildManagerInit.lua
index 3aa2fa0..996e35a 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.5"
+LeoGuildManager.version = "1.1.6"
 LeoGuildManager.chatPrefix = "|c39B027" .. LeoGuildManager.name .. "|r: "

 LeoGuildManager.TAB_PURGE = "Purge"
diff --git a/LeoGuildManagerUI.lua b/LeoGuildManagerUI.lua
index d577101..f4cf71f 100644
--- a/LeoGuildManagerUI.lua
+++ b/LeoGuildManagerUI.lua
@@ -379,10 +379,11 @@ function LeoGuildManagerMemberList:ColorRow(control, data, mouseIsOver)
     local canScan = LeoGuildManager.CanScanBankHistory(guildId)
     local integrationLoaded = LeoGuildManager.HasIntegrationAddonsLoaded()
     local ATTLoaded = LeoGuildManager.HasIntegrationAddonsLoaded(2)
+    local purchases = LeoGuildManager.GetPurgePurchases(guildName)

     local ticketsThreshold = guildData.tickets * 1000
     local salesThreshold = guildData.sales * 1000
-    local purchasesThreshold = guildData.purchases * 1000
+    local purchasesThreshold = purchases * 1000
     local offlineThreshold = guildData.inactivity * LeoGuildManager.SECONDS_IN_DAY

     local child = GetControl(control, "Name")
@@ -435,10 +436,11 @@ function LeoGuildManagerMemberList:FilterScrollList()
     ZO_ClearNumericallyIndexedTable(scrollData)

     local guildData = LeoGuildManager.globalData.settings.guilds[LeoGuildManager.globalData.selectedGuild]
+    local purchases = LeoGuildManager.GetPurgePurchases(guildName)

     local ticketsThreshold = guildData.tickets * 1000
     local salesThreshold = guildData.sales * 1000
-    local purchasesThreshold = guildData.purchases * 1000
+    local purchasesThreshold = purchases * 1000
     local offlineThreshold = guildData.inactivity * LeoGuildManager.SECONDS_IN_DAY
     local ignoreRank = guildData.ignoreRank
     local ignoreNew = guildData.ignoreNew * LeoGuildManager.SECONDS_IN_DAY