Table of Contents

Class SalesTaxReportRow

Namespace
Integrations.Contracts.Reports
Assembly
Integrations.Contracts.dll

One committed line with its jurisdiction breakdown: the monthly sales-tax report / return-prep export. Credits appear as negative lines so period totals net out.

public sealed record SalesTaxReportRow : IEquatable<SalesTaxReportRow>
Inheritance
SalesTaxReportRow
Implements
Inherited Members

Constructors

SalesTaxReportRow(string, DateOnly, TaxDirection, TaxDocumentKind, string?, string?, string?, string, string?, string?, string?, string?, string?, string?, string, int, LineCategory, string?, string?, string?, string, bool, decimal, decimal, decimal, decimal, decimal, decimal, decimal, decimal, decimal, decimal, decimal, decimal, decimal, decimal, decimal, string, decimal?, decimal, string, string)

One committed line with its jurisdiction breakdown: the monthly sales-tax report / return-prep export. Credits appear as negative lines so period totals net out.

public SalesTaxReportRow(string EntityId, DateOnly DocumentDate, TaxDirection Direction, TaxDocumentKind Kind, string? InvoiceNumber, string? PurchaseOrderNumber, string? WorkOrderNumber, string CounterpartyCode, string? CounterpartyName, string? JobSiteLine1, string? City, string? County, string? Region, string? PostalCode, string Country, int LineNumber, LineCategory Category, string? WorkType, string? WorkSubType, string? Trade, string TaxCode, bool IsTaxable, decimal LineAmount, decimal TaxableAmount, decimal ExemptAmount, decimal StateRate, decimal StateTax, decimal CountyRate, decimal CountyTax, decimal CityRate, decimal CityTax, decimal SpecialRate, decimal SpecialTax, decimal CountryRate, decimal CountryTax, decimal TotalRate, decimal TotalTax, string CurrencyCode, decimal? ExchangeRate, decimal TotalTaxFunctional, string FunctionalCurrency, string ProviderDocumentCode)

Parameters

EntityId string

Owning entity.

DocumentDate DateOnly

Document (tax) date.

Direction TaxDirection

Receivable (sales tax) or payable (use tax).

Kind TaxDocumentKind

Invoice or credit.

InvoiceNumber string

Invoice, bill or credit memo number.

PurchaseOrderNumber string

PO number.

WorkOrderNumber string

Work order number.

CounterpartyCode string

Client or vendor code.

CounterpartyName string

Client or vendor name.

JobSiteLine1 string

Job site street address.

City string

City jurisdiction (or the job site city).

County string

County jurisdiction, if any.

Region string

State/province code.

PostalCode string

Job site postal code.

Country string

Job site country.

LineNumber int

Line number on the document.

Category LineCategory

Labor, material, ...

WorkType string

Work type.

WorkSubType string

Work sub-type.

Trade string

Trade.

TaxCode string

AvaTax tax code used.

IsTaxable bool

Whether any of the line is taxable.

LineAmount decimal

Line amount.

TaxableAmount decimal

Taxable amount.

ExemptAmount decimal

Exempt amount.

StateRate decimal

State/province rate.

StateTax decimal

State/province tax.

CountyRate decimal

County rate.

CountyTax decimal

County tax.

CityRate decimal

City rate.

CityTax decimal

City tax.

SpecialRate decimal

Special-district rate.

SpecialTax decimal

Special-district tax.

CountryRate decimal

National rate (e.g. GST).

CountryTax decimal

National tax.

TotalRate decimal

Combined rate.

TotalTax decimal

Total tax on the line.

CurrencyCode string

Document currency.

ExchangeRate decimal?

Locked rate to the functional currency, if the currencies differ.

TotalTaxFunctional decimal

Total tax in the functional currency.

FunctionalCurrency string

Entity's base currency.

ProviderDocumentCode string

Document code at the tax provider (to look it up in AvaTax).

Properties

Category

Labor, material, ...

public LineCategory Category { get; init; }

Property Value

LineCategory

City

City jurisdiction (or the job site city).

public string? City { get; init; }

Property Value

string

CityRate

City rate.

public decimal CityRate { get; init; }

Property Value

decimal

CityTax

City tax.

public decimal CityTax { get; init; }

Property Value

decimal

CounterpartyCode

Client or vendor code.

public string CounterpartyCode { get; init; }

Property Value

string

CounterpartyName

Client or vendor name.

public string? CounterpartyName { get; init; }

Property Value

string

Country

Job site country.

public string Country { get; init; }

Property Value

string

CountryRate

National rate (e.g. GST).

public decimal CountryRate { get; init; }

Property Value

decimal

CountryTax

National tax.

public decimal CountryTax { get; init; }

Property Value

decimal

County

County jurisdiction, if any.

public string? County { get; init; }

Property Value

string

CountyRate

County rate.

public decimal CountyRate { get; init; }

Property Value

decimal

CountyTax

County tax.

public decimal CountyTax { get; init; }

Property Value

decimal

CurrencyCode

Document currency.

public string CurrencyCode { get; init; }

Property Value

string

Direction

Receivable (sales tax) or payable (use tax).

public TaxDirection Direction { get; init; }

Property Value

TaxDirection

DocumentDate

Document (tax) date.

public DateOnly DocumentDate { get; init; }

Property Value

DateOnly

EntityId

Owning entity.

public string EntityId { get; init; }

Property Value

string

ExchangeRate

Locked rate to the functional currency, if the currencies differ.

public decimal? ExchangeRate { get; init; }

Property Value

decimal?

ExemptAmount

Exempt amount.

public decimal ExemptAmount { get; init; }

Property Value

decimal

FunctionalCurrency

Entity's base currency.

public string FunctionalCurrency { get; init; }

Property Value

string

InvoiceNumber

Invoice, bill or credit memo number.

public string? InvoiceNumber { get; init; }

Property Value

string

IsTaxable

Whether any of the line is taxable.

public bool IsTaxable { get; init; }

Property Value

bool

JobSiteLine1

Job site street address.

public string? JobSiteLine1 { get; init; }

Property Value

string

Kind

Invoice or credit.

public TaxDocumentKind Kind { get; init; }

Property Value

TaxDocumentKind

LineAmount

Line amount.

public decimal LineAmount { get; init; }

Property Value

decimal

LineNumber

Line number on the document.

public int LineNumber { get; init; }

Property Value

int

PostalCode

Job site postal code.

public string? PostalCode { get; init; }

Property Value

string

ProviderDocumentCode

Document code at the tax provider (to look it up in AvaTax).

public string ProviderDocumentCode { get; init; }

Property Value

string

PurchaseOrderNumber

PO number.

public string? PurchaseOrderNumber { get; init; }

Property Value

string

Region

State/province code.

public string? Region { get; init; }

Property Value

string

SpecialRate

Special-district rate.

public decimal SpecialRate { get; init; }

Property Value

decimal

SpecialTax

Special-district tax.

public decimal SpecialTax { get; init; }

Property Value

decimal

StateRate

State/province rate.

public decimal StateRate { get; init; }

Property Value

decimal

StateTax

State/province tax.

public decimal StateTax { get; init; }

Property Value

decimal

TaxCode

AvaTax tax code used.

public string TaxCode { get; init; }

Property Value

string

TaxableAmount

Taxable amount.

public decimal TaxableAmount { get; init; }

Property Value

decimal

TotalRate

Combined rate.

public decimal TotalRate { get; init; }

Property Value

decimal

TotalTax

Total tax on the line.

public decimal TotalTax { get; init; }

Property Value

decimal

TotalTaxFunctional

Total tax in the functional currency.

public decimal TotalTaxFunctional { get; init; }

Property Value

decimal

Trade

Trade.

public string? Trade { get; init; }

Property Value

string

WorkOrderNumber

Work order number.

public string? WorkOrderNumber { get; init; }

Property Value

string

WorkSubType

Work sub-type.

public string? WorkSubType { get; init; }

Property Value

string

WorkType

Work type.

public string? WorkType { get; init; }

Property Value

string