From 2f26f6d6eba183a690c6e1d3ec19b274a313d5a6 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 4 Dec 2017 20:06:55 +0100 Subject: [PATCH] Important: zeroes out tx if expense claim is denied --- Logic/Financial/ExpenseClaim.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Logic/Financial/ExpenseClaim.cs b/Logic/Financial/ExpenseClaim.cs index 36575768..de0f3a76 100644 --- a/Logic/Financial/ExpenseClaim.cs +++ b/Logic/Financial/ExpenseClaim.cs @@ -357,6 +357,8 @@ namespace Swarmops.Logic.Financial OutboundComm.CreateNotificationOfFinancialValidation (Budget, Claimer, AmountCents/100.0, Description, NotificationResource.ExpenseClaim_Attested); + + UpdateFinancialTransaction(attester); // will re-enable tx if it was zeroed out earlier } public void Deattest (Person deattester) @@ -380,6 +382,8 @@ namespace Swarmops.Logic.Financial OutboundComm.CreateNotificationOfFinancialValidation(Budget, Claimer, AmountCents / 100.0, Description, NotificationResource.ExpenseClaim_Denied, reason); + + UpdateFinancialTransaction(denyingPerson); // will zero out transaction } #endregion