Price
in package
uses
Immutable
Read onlyYes
FinalYes
Price details (BG-29). Prices may have more than two decimals.
Note: BT-148 "item gross price" is the list price before the price discount, not a price including VAT. Prices including VAT are an input for the gross price mode ($priceInclVat) and are converted by the calculator.
Table of Contents
Properties
- $baseQuantity : BigDecimal|null
- $baseQuantityUnit : UnitCode|RawCode|null
- $discount : BigDecimal|null
- $grossPrice : BigDecimal|null
- $netPrice : BigDecimal|null
- $priceInclVat : BigDecimal|null
Methods
- __construct() : mixed
- isGrossMode() : bool
- with() : static
- Returns a copy with the given properties replaced.
Properties
$baseQuantity
public
BigDecimal|null
$baseQuantity
= null
Attributes
- #[Bt]
- 'BT-149'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:NetPriceProductTradePrice/ram:BasisQuantity'
- #[Level]
- ProfileLevel::Basic
- #[Ubl]
- 'cac:Price/cbc:BaseQuantity'
$baseQuantityUnit
public
UnitCode|RawCode|null
$baseQuantityUnit
= null
Attributes
- #[Bt]
- 'BT-150'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:NetPriceProductTradePrice/ram:BasisQuantity/@unitCode'
- #[Level]
- ProfileLevel::Basic
- #[Ubl]
- 'cac:Price/cbc:BaseQuantity/@unitCode'
$discount
public
BigDecimal|null
$discount
= null
Attributes
- #[Bt]
- 'BT-147'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:GrossPriceProductTradePrice/ram:AppliedTradeAllowanceCharge/ram:ActualAmount'
- #[Level]
- ProfileLevel::Basic
- #[Ubl]
- 'cac:Price/cac:AllowanceCharge/cbc:Amount'
$grossPrice
public
BigDecimal|null
$grossPrice
= null
Attributes
- #[Bt]
- 'BT-148'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:GrossPriceProductTradePrice/ram:ChargeAmount'
- #[Level]
- ProfileLevel::Basic
- #[Ubl]
- 'cac:Price/cac:AllowanceCharge/cbc:BaseAmount'
$netPrice
public
BigDecimal|null
$netPrice
Attributes
- #[Bt]
- 'BT-146'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:NetPriceProductTradePrice/ram:ChargeAmount'
- #[Level]
- ProfileLevel::Basic
- #[Ubl]
- 'cac:Price/cbc:PriceAmount'
$priceInclVat
public
BigDecimal|null
$priceInclVat
= null
Attributes
- #[Internal]
Methods
__construct()
public
__construct(BigDecimal|null $netPrice[, BigDecimal|null $discount = null ][, BigDecimal|null $grossPrice = null ][, BigDecimal|null $baseQuantity = null ][, UnitCode|RawCode|null $baseQuantityUnit = null ][, BigDecimal|null $priceInclVat = null ]) : mixed
Parameters
isGrossMode()
public
isGrossMode() : bool
Return values
boolwith()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>