Table of Contents

Class ReportService

Namespace
Integrations.Application.Reports
Assembly
Integrations.Application.dll

Tax reporting from the committed documents and their stored jurisdiction breakdown.

public sealed class ReportService
Inheritance
ReportService
Inherited Members

Constructors

ReportService(IAppDbContext, EntityGuard)

Tax reporting from the committed documents and their stored jurisdiction breakdown.

public ReportService(IAppDbContext db, EntityGuard guard)

Parameters

db IAppDbContext
guard EntityGuard

Fields

MaxDays

At most this many days per request, to keep exports bounded.

public const int MaxDays = 400

Field Value

int

Methods

ByJurisdictionAsync(string, DateOnly, DateOnly, TaxDirection?, CancellationToken)

Period totals per jurisdiction.

public Task<IReadOnlyList<JurisdictionTotalRow>> ByJurisdictionAsync(string entityId, DateOnly from, DateOnly to, TaxDirection? direction, CancellationToken ct)

Parameters

entityId string
from DateOnly
to DateOnly
direction TaxDirection?
ct CancellationToken

Returns

Task<IReadOnlyList<JurisdictionTotalRow>>

SalesTaxAsync(string, DateOnly, DateOnly, TaxDirection?, CancellationToken)

Committed lines in the period with their jurisdiction breakdown (credits negative).

public Task<IReadOnlyList<SalesTaxReportRow>> SalesTaxAsync(string entityId, DateOnly from, DateOnly to, TaxDirection? direction, CancellationToken ct)

Parameters

entityId string
from DateOnly
to DateOnly
direction TaxDirection?
ct CancellationToken

Returns

Task<IReadOnlyList<SalesTaxReportRow>>

VendorTaxAsync(string, DateOnly, DateOnly, CancellationToken)

AP bills where the vendor charged tax, against the calculated tax.

public Task<IReadOnlyList<VendorTaxRow>> VendorTaxAsync(string entityId, DateOnly from, DateOnly to, CancellationToken ct)

Parameters

entityId string
from DateOnly
to DateOnly
ct CancellationToken

Returns

Task<IReadOnlyList<VendorTaxRow>>