Class TaxCalculationLine
- Namespace
- Integrations.Application.Tax
- Assembly
- Integrations.Application.dll
One line of a provider-neutral calculation request.
public sealed record TaxCalculationLine : IEquatable<TaxCalculationLine>
- Inheritance
-
TaxCalculationLine
- Implements
- Inherited Members
Constructors
TaxCalculationLine(int, decimal, decimal, string, Address, string?, string?, string?, string?)
One line of a provider-neutral calculation request.
public TaxCalculationLine(int LineNumber, decimal Amount, decimal Quantity, string TaxCode, Address JobSite, string? ItemCode, string? Description, string? Reference1, string? Reference2)
Parameters
LineNumberint1-based line number.
AmountdecimalLine amount in the document currency.
QuantitydecimalUnits.
TaxCodestringResolved tax code.
JobSiteAddressAddress the line is taxed at.
ItemCodestringCaller's item code.
DescriptionstringLine description.
Reference1stringCaller's line reference (PO/WO line).
Reference2stringLine category (labor, material, ...).
Properties
Amount
Line amount in the document currency.
public decimal Amount { get; init; }
Property Value
Description
Line description.
public string? Description { get; init; }
Property Value
ItemCode
Caller's item code.
public string? ItemCode { get; init; }
Property Value
JobSite
Address the line is taxed at.
public Address JobSite { get; init; }
Property Value
LineNumber
1-based line number.
public int LineNumber { get; init; }
Property Value
Quantity
Units.
public decimal Quantity { get; init; }
Property Value
Reference1
Caller's line reference (PO/WO line).
public string? Reference1 { get; init; }
Property Value
Reference2
Line category (labor, material, ...).
public string? Reference2 { get; init; }
Property Value
TaxCode
Resolved tax code.
public string TaxCode { get; init; }