Files
2017-10-08 20:52:58 +02:00

48 lines
1.1 KiB
C#

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<VatReportItems, VatReportItem, BasicVatReportItem>
{
#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);
}
}
}
}