Lots of work on VAT reports

This commit is contained in:
Rick Falkvinge
2017-10-07 17:19:02 +02:00
parent 395c0debcb
commit 06a5732a09
8 changed files with 273 additions and 30 deletions
+25 -2
View File
@@ -12,15 +12,38 @@ namespace Swarmops.Basic.Types.Financial
{
// Normal ctor
public BasicVatReportItem(int vatReportItemId, int vatReportId, int financialTransactionId, int foreignId,
FinancialDependencyType dependencyType, Int64 turnoverCents, Int64 vatInboundCents, Int64 vatOutboundCents)
{
this.VatReportItemId = vatReportItemId;
this.VatReportId = VatReportId;
this.FinancialTransactionId = financialTransactionId;
this.ForeignId = foreignId;
this.DependencyType = dependencyType;
this.TurnoverCents = turnoverCents;
this.VatInboundCents = vatInboundCents;
this.VatOutboundCents = vatOutboundCents;
}
// Copy ctor
public BasicVatReportItem(BasicVatReportItem original) :
this(original.VatReportItemId, original.VatReportId, original.FinancialTransactionId, original.ForeignId,
original.DependencyType, original.TurnoverCents, original.VatInboundCents, original.VatOutboundCents)
{
// empty copy ctor
}
// Properties
public int VatReportItemId { get; private set; }
public int ForeignId { get; private set; }
public int VatReportId { get; private set; }
public int FinancialTransactionId { get; private set; }
public int ForeignId { get; private set; }
public FinancialDependencyType DependencyType { get; private set; }
public Int64 TurnoverCents { get; private set; }
public Int64 VatInboundCents { get; private set; }
public Int64 VatOutboundCents { get; private set; }
// Interfaces