Bad accounting error; fortunately quickly caught because they knew error correcting systems as early as 1495 with Venetian double bookkeeping

This commit is contained in:
Rick Falkvinge
2017-09-26 17:05:09 +02:00
parent 75dfd4c8c2
commit 501118d06f
@@ -176,13 +176,13 @@ namespace Swarmops.Frontend.Pages.v5.Financial
txOut.AddRow(CurrentOrganization.FinancialAccounts.AssetsOutboundInvoices, amountCents, CurrentUser);
if (amountVatCents > 0)
{
txOut.AddRow(CurrentOrganization.FinancialAccounts.DebtsVatOutboundUnreported, amountVatCents,
txOut.AddRow(CurrentOrganization.FinancialAccounts.DebtsVatOutboundUnreported, -amountVatCents,
CurrentUser);
txOut.AddRow(budget, -(amountCents - amountVatCents), CurrentUser); // Sales value
}
else
{
txOut.AddRow(budget, amountCents, CurrentUser);
txOut.AddRow(budget, -amountCents, CurrentUser);
}