using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Swarmops.Basic.Types.Financial; using Swarmops.Database; using Swarmops.Logic.Support; namespace Swarmops.Logic.Financial { public class VatReportItems: PluralBase { #region Creation and Construction public static VatReportItems ForReport(VatReport report) { return FromArray(SwarmDb.GetDatabaseForReading().GetVatReportItems(report)); } #endregion public Int64 TurnoverCents { get { return this.Sum(item => item.TurnoverCents); } } public Int64 VatInboundCents { get { return this.Sum(item => item.VatInboundCents); } } public Int64 VatOutboundCents { get { return this.Sum(item => item.VatOutboundCents); } } } }