private VATSummary CreateSummary(VATExportBody data) { return(new VATSummary { TotalTaxInvoiced = data.Invoiced.TaxH + data.Invoiced.TaxL, TotalTaxReceived = data.Received.TaxH + data.Received.TaxL, }); }
private VATExportBody CreateExportData(FakturoidContext context, ExportSetup setup) { var data = new VATExportBody { PeriodInfo = CreatePeriodInfo(context, setup), Invoiced = CreateInvoiced(context, setup), Received = CreateReceived(context, setup), Adjustments = CreateAdjustments(context, setup), Subject = CreateSubject(context, setup), }; data.Summary = CreateSummary(data); return(data); }