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
EntityIdstringOwning entity.
DocumentDateDateOnlyDocument (tax) date.
DirectionTaxDirectionReceivable (sales tax) or payable (use tax).
KindTaxDocumentKindInvoice or credit.
InvoiceNumberstringInvoice, bill or credit memo number.
PurchaseOrderNumberstringPO number.
WorkOrderNumberstringWork order number.
CounterpartyCodestringClient or vendor code.
CounterpartyNamestringClient or vendor name.
JobSiteLine1stringJob site street address.
CitystringCity jurisdiction (or the job site city).
CountystringCounty jurisdiction, if any.
RegionstringState/province code.
PostalCodestringJob site postal code.
CountrystringJob site country.
LineNumberintLine number on the document.
CategoryLineCategoryLabor, material, ...
WorkTypestringWork type.
WorkSubTypestringWork sub-type.
TradestringTrade.
TaxCodestringAvaTax tax code used.
IsTaxableboolWhether any of the line is taxable.
LineAmountdecimalLine amount.
TaxableAmountdecimalTaxable amount.
ExemptAmountdecimalExempt amount.
StateRatedecimalState/province rate.
StateTaxdecimalState/province tax.
CountyRatedecimalCounty rate.
CountyTaxdecimalCounty tax.
CityRatedecimalCity rate.
CityTaxdecimalCity tax.
SpecialRatedecimalSpecial-district rate.
SpecialTaxdecimalSpecial-district tax.
CountryRatedecimalNational rate (e.g. GST).
CountryTaxdecimalNational tax.
TotalRatedecimalCombined rate.
TotalTaxdecimalTotal tax on the line.
CurrencyCodestringDocument currency.
ExchangeRatedecimal?Locked rate to the functional currency, if the currencies differ.
TotalTaxFunctionaldecimalTotal tax in the functional currency.
FunctionalCurrencystringEntity's base currency.
ProviderDocumentCodestringDocument code at the tax provider (to look it up in AvaTax).
Properties
Category
Labor, material, ...
public LineCategory Category { get; init; }
Property Value
City
City jurisdiction (or the job site city).
public string? City { get; init; }
Property Value
CityRate
City rate.
public decimal CityRate { get; init; }
Property Value
CityTax
City tax.
public decimal CityTax { get; init; }
Property Value
CounterpartyCode
Client or vendor code.
public string CounterpartyCode { get; init; }
Property Value
CounterpartyName
Client or vendor name.
public string? CounterpartyName { get; init; }
Property Value
Country
Job site country.
public string Country { get; init; }
Property Value
CountryRate
National rate (e.g. GST).
public decimal CountryRate { get; init; }
Property Value
CountryTax
National tax.
public decimal CountryTax { get; init; }
Property Value
County
County jurisdiction, if any.
public string? County { get; init; }
Property Value
CountyRate
County rate.
public decimal CountyRate { get; init; }
Property Value
CountyTax
County tax.
public decimal CountyTax { get; init; }
Property Value
CurrencyCode
Document currency.
public string CurrencyCode { get; init; }
Property Value
Direction
Receivable (sales tax) or payable (use tax).
public TaxDirection Direction { get; init; }
Property Value
DocumentDate
Document (tax) date.
public DateOnly DocumentDate { get; init; }
Property Value
EntityId
Owning entity.
public string EntityId { get; init; }
Property Value
ExchangeRate
Locked rate to the functional currency, if the currencies differ.
public decimal? ExchangeRate { get; init; }
Property Value
ExemptAmount
Exempt amount.
public decimal ExemptAmount { get; init; }
Property Value
FunctionalCurrency
Entity's base currency.
public string FunctionalCurrency { get; init; }
Property Value
InvoiceNumber
Invoice, bill or credit memo number.
public string? InvoiceNumber { get; init; }
Property Value
IsTaxable
Whether any of the line is taxable.
public bool IsTaxable { get; init; }
Property Value
JobSiteLine1
Job site street address.
public string? JobSiteLine1 { get; init; }
Property Value
Kind
Invoice or credit.
public TaxDocumentKind Kind { get; init; }
Property Value
LineAmount
Line amount.
public decimal LineAmount { get; init; }
Property Value
LineNumber
Line number on the document.
public int LineNumber { get; init; }
Property Value
PostalCode
Job site postal code.
public string? PostalCode { get; init; }
Property Value
ProviderDocumentCode
Document code at the tax provider (to look it up in AvaTax).
public string ProviderDocumentCode { get; init; }
Property Value
PurchaseOrderNumber
PO number.
public string? PurchaseOrderNumber { get; init; }
Property Value
Region
State/province code.
public string? Region { get; init; }
Property Value
SpecialRate
Special-district rate.
public decimal SpecialRate { get; init; }
Property Value
SpecialTax
Special-district tax.
public decimal SpecialTax { get; init; }
Property Value
StateRate
State/province rate.
public decimal StateRate { get; init; }
Property Value
StateTax
State/province tax.
public decimal StateTax { get; init; }
Property Value
TaxCode
AvaTax tax code used.
public string TaxCode { get; init; }
Property Value
TaxableAmount
Taxable amount.
public decimal TaxableAmount { get; init; }
Property Value
TotalRate
Combined rate.
public decimal TotalRate { get; init; }
Property Value
TotalTax
Total tax on the line.
public decimal TotalTax { get; init; }
Property Value
TotalTaxFunctional
Total tax in the functional currency.
public decimal TotalTaxFunctional { get; init; }
Property Value
Trade
Trade.
public string? Trade { get; init; }
Property Value
WorkOrderNumber
Work order number.
public string? WorkOrderNumber { get; init; }
Property Value
WorkSubType
Work sub-type.
public string? WorkSubType { get; init; }
Property Value
WorkType
Work type.
public string? WorkType { get; init; }