Totals
in package
uses
Immutable
Read onlyYes
FinalYes
Document totals (BG-22), calculated by the calculator.
Table of Contents
Properties
- $allowanceSum : Money|null
- $amountDue : Money
- $chargeSum : Money|null
- $grossTotal : Money
- $lineNetSum : Money
- $netTotal : Money
- $prepaidAmount : Money|null
- $roundingAmount : Money|null
- $vatTotal : Money|null
- $vatTotalInTaxCurrency : Money|null
Methods
- __construct() : mixed
- with() : static
- Returns a copy with the given properties replaced.
Properties
$allowanceSum
public
Money|null
$allowanceSum
= null
Attributes
- #[Bt]
- 'BT-107'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:AllowanceTotalAmount'
- #[Computed]
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:LegalMonetaryTotal/cbc:AllowanceTotalAmount'
$amountDue
public
Money
$amountDue
Attributes
- #[Bt]
- 'BT-115'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:DuePayableAmount'
- #[Computed]
- #[Level]
- ProfileLevel::Minimum
- #[Ubl]
- 'cac:LegalMonetaryTotal/cbc:PayableAmount'
$chargeSum
public
Money|null
$chargeSum
= null
Attributes
- #[Bt]
- 'BT-108'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:ChargeTotalAmount'
- #[Computed]
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:LegalMonetaryTotal/cbc:ChargeTotalAmount'
$grossTotal
public
Money
$grossTotal
Attributes
- #[Bt]
- 'BT-112'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:GrandTotalAmount'
- #[Computed]
- #[Level]
- ProfileLevel::Minimum
- #[Ubl]
- 'cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount'
$lineNetSum
public
Money
$lineNetSum
Attributes
- #[Bt]
- 'BT-106'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:LineTotalAmount'
- #[Computed]
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:LegalMonetaryTotal/cbc:LineExtensionAmount'
$netTotal
public
Money
$netTotal
Attributes
- #[Bt]
- 'BT-109'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:TaxBasisTotalAmount'
- #[Computed]
- #[Level]
- ProfileLevel::Minimum
- #[Ubl]
- 'cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount'
$prepaidAmount
public
Money|null
$prepaidAmount
= null
Attributes
- #[Bt]
- 'BT-113'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:TotalPrepaidAmount'
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:LegalMonetaryTotal/cbc:PrepaidAmount'
$roundingAmount
public
Money|null
$roundingAmount
= null
Attributes
- #[Bt]
- 'BT-114'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:RoundingAmount'
- #[Level]
- ProfileLevel::BasicWl
- #[Ubl]
- 'cac:LegalMonetaryTotal/cbc:PayableRoundingAmount'
$vatTotal
public
Money|null
$vatTotal
= null
Attributes
- #[Bt]
- 'BT-110'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:TaxTotalAmount (currencyID = BT-5)'
- #[Computed]
- #[Level]
- ProfileLevel::Minimum
- #[Ubl]
- 'cac:TaxTotal/cbc:TaxAmount'
$vatTotalInTaxCurrency
public
Money|null
$vatTotalInTaxCurrency
= null
Attributes
- #[Bt]
- 'BT-111'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:TaxTotalAmount (currencyID = BT-6)'
- #[Computed]
- #[Level]
- ProfileLevel::BasicWl
- #[TaxCurrency]
- #[Ubl]
- 'cac:TaxTotal/cbc:TaxAmount'
Methods
__construct()
public
__construct(Money $lineNetSum, Money $netTotal, Money $grossTotal, Money $amountDue[, Money|null $allowanceSum = null ][, Money|null $chargeSum = null ][, Money|null $vatTotal = null ][, Money|null $vatTotalInTaxCurrency = null ][, Money|null $prepaidAmount = null ][, Money|null $roundingAmount = null ]) : mixed
Parameters
- $lineNetSum : Money
- $netTotal : Money
- $grossTotal : Money
- $amountDue : Money
- $allowanceSum : Money|null = null
- $chargeSum : Money|null = null
- $vatTotal : Money|null = null
- $vatTotalInTaxCurrency : Money|null = null
- $prepaidAmount : Money|null = null
- $roundingAmount : Money|null = null
with()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>