From 501118d06fd4d62bb08f60aed57b73377db826e0 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 26 Sep 2017 17:05:09 +0200 Subject: [PATCH] Bad accounting error; fortunately quickly caught because they knew error correcting systems as early as 1495 with Venetian double bookkeeping --- Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs b/Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs index b96f25c1..2d9d1f90 100644 --- a/Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs +++ b/Site/Pages/v5/Financial/CreateOutboundInvoice.aspx.cs @@ -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); }