Important: zeroes out tx if expense claim is denied

This commit is contained in:
Rick Falkvinge
2017-12-04 20:06:55 +01:00
parent 3410d0fa80
commit 2f26f6d6eb
+4
View File
@@ -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