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
dbIAppDbContextguardEntityGuard
Fields
MaxDays
At most this many days per request, to keep exports bounded.
public const int MaxDays = 400
Field Value
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
entityIdstringfromDateOnlytoDateOnlydirectionTaxDirection?ctCancellationToken
Returns
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
entityIdstringfromDateOnlytoDateOnlydirectionTaxDirection?ctCancellationToken
Returns
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
entityIdstringfromDateOnlytoDateOnlyctCancellationToken