From 9b2e118ae255c54c66e12754fcbb842d870c9919 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 16 Feb 2017 18:20:00 +0100 Subject: [PATCH] Fixed bug showing paidout advances as reversible attestations --- Site/Pages/v5/Financial/Json-AttestableCosts.aspx.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Site/Pages/v5/Financial/Json-AttestableCosts.aspx.cs b/Site/Pages/v5/Financial/Json-AttestableCosts.aspx.cs index 777a88bb..9f658af3 100644 --- a/Site/Pages/v5/Financial/Json-AttestableCosts.aspx.cs +++ b/Site/Pages/v5/Financial/Json-AttestableCosts.aspx.cs @@ -134,14 +134,14 @@ public partial class Pages_v5_Finance_Json_AttestableCosts : DataV5Base advance.Person.Name, advance.AmountCents, advance.Budget, advance.Description, "Financial_CashAdvance", false, advance); - if (advance.Attested) - { - this._attestedItems.Add (item); - } - else + if (!advance.Attested) // if not attested { this._items.Add (item); } + else if (!advance.PaidOut) // if attested, but still reversible + { + this._attestedItems.Add (item); + } } } }