From aeef34cdf672e86482d086997ff6cb2cd914193c Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 4 Dec 2017 20:08:07 +0100 Subject: [PATCH] Important: zeroes out tx if invoice is denied --- Logic/Financial/InboundInvoice.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Logic/Financial/InboundInvoice.cs b/Logic/Financial/InboundInvoice.cs index 6002f84f..6c876f9e 100644 --- a/Logic/Financial/InboundInvoice.cs +++ b/Logic/Financial/InboundInvoice.cs @@ -152,6 +152,8 @@ namespace Swarmops.Logic.Financial FinancialDependencyType.InboundInvoice, Identity, DateTime.UtcNow, attester.Identity, BudgetAmountCents); base.Attested = true; + + UpdateTransaction(attester); // will re-enable the tx if denied and reopened earlier } public void Deattest (Person deattester) @@ -170,6 +172,8 @@ namespace Swarmops.Logic.Financial DateTime.UtcNow, denyingPerson.Identity, (double)Amount); Attested = false; Open = false; + + UpdateTransaction(denyingPerson); // will zero out the tx } #endregion