VAT report work

This commit is contained in:
Rick Falkvinge
2017-10-10 09:11:12 +02:00
parent 9cf57ba3bf
commit abda957c77
11 changed files with 231 additions and 41 deletions
+7 -2
View File
@@ -13,7 +13,7 @@ namespace Swarmops.Basic.Types.Financial
public BasicVatReport(int vatReportId, int organizationId, string guid, DateTime createdDateTime,
int yearMonthStart, int monthCount, bool open, Int64 turnoverCents, Int64 vatInboundCents,
Int64 vatOutboundCents, bool underConstruction)
Int64 vatOutboundCents, int openTransactionId, int closeTransactionId, bool underConstruction)
{
this.VatReportId = vatReportId;
this.OrganizationId = organizationId;
@@ -25,6 +25,8 @@ namespace Swarmops.Basic.Types.Financial
this.TurnoverCents = turnoverCents;
this.VatInboundCents = vatInboundCents;
this.VatOutboundCents = vatOutboundCents;
this.OpenTransactionId = openTransactionId;
this.CloseTransactionId = closeTransactionId;
this.UnderConstruction = underConstruction;
}
@@ -33,7 +35,8 @@ namespace Swarmops.Basic.Types.Financial
public BasicVatReport(BasicVatReport original)
: this(original.Identity, original.OrganizationId, original.Guid, original.CreatedDateTime,
original.YearMonthStart, original.MonthCount, original.Open, original.TurnoverCents,
original.VatInboundCents, original.VatOutboundCents, original.UnderConstruction)
original.VatInboundCents, original.VatOutboundCents, original.OpenTransactionId,
original.CloseTransactionId, original.UnderConstruction)
{
// empty copy ctor
}
@@ -50,6 +53,8 @@ namespace Swarmops.Basic.Types.Financial
public Int64 VatInboundCents { get; protected set; }
public Int64 VatOutboundCents { get; protected set; }
public bool Open { get; protected set; }
public int OpenTransactionId { get; protected set; }
public int CloseTransactionId { get; protected set; }
public bool UnderConstruction { get; protected set; }
// Interfaces