From 5df268f920906c28c8d6a82eab61d816918fc922 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 2 Dec 2017 13:16:02 +0100 Subject: [PATCH] Important fix for VAT report display --- Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs b/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs index c1e5e625..1d915ee4 100644 --- a/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs +++ b/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs @@ -66,21 +66,21 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers transaction.DateTime, JsonSanitize(transaction.Description)); - if (item.TurnoverCents > 0) + if (item.TurnoverCents != 0) { element += String.Format(",\"turnover\":\"{0:N2}\"", item.TurnoverCents / 100.0); turnoverCentsTotal += item.TurnoverCents; include = true; } - if (item.VatInboundCents > 0) + if (item.VatInboundCents != 0) { element += String.Format(",\"inbound\":\"{0:N2}\"", item.VatInboundCents/ 100.0); inboundCentsTotal += item.VatInboundCents; include = true; } - if (item.VatOutboundCents > 0) + if (item.VatOutboundCents != 0) { element += String.Format(",\"outbound\":\"{0:N2}\"", item.VatOutboundCents/ 100.0); outboundCentsTotal += item.VatOutboundCents;