Class SumItem
Container used to represent an subtotal or grandtotal item which contains various prices and a tax breakdown held in a collection of tax-items.
Usage example:
| Property | Description |
|---|---|
grossPrice: Money (read-only) | Gross price of SumItem. |
netPrice: Money (read-only) | Net price of SumItem. |
tax: Money (read-only) | Total tax for SumItem. |
taxBasis: Money (read-only) | Price of entire SumItem on which tax calculation is based. |
taxItems: Collection (read-only) | Tax items representing a tax breakdown for the SumItem. |
This class does not have a constructor, so you cannot create it directly.
| Method | Description |
|---|---|
| getGrossPrice() | Gross price of SumItem. |
| getNetPrice() | Net price of SumItem. |
| getTax() | Total tax for SumItem. |
| getTaxBasis() | Price of entire SumItem on which tax calculation is based. |
| getTaxItems() | Tax items representing a tax breakdown for the SumItem. |
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- grossPrice: Money
(read-only) Gross price of SumItem.
- netPrice: Money
(read-only) Net price of SumItem.
- tax: Money
(read-only) Total tax for SumItem.
- taxBasis: Money
(read-only) Price of entire SumItem on which tax calculation is based. Same as getNetPrice() or getGrossPrice() depending on whether the order is based on net or gross prices.
- taxItems: Collection
(read-only) Tax items representing a tax breakdown for the SumItem.
See Also:
- getGrossPrice(): Money
Gross price of SumItem.
Returns:
- Gross price of SumItem.
- getNetPrice(): Money
Net price of SumItem.
Returns:
- Net price of SumItem.
- getTax(): Money
Total tax for SumItem.
Returns:
- Total tax for SumItem.
- getTaxBasis(): Money
Price of entire SumItem on which tax calculation is based. Same as getNetPrice() or getGrossPrice() depending on whether the order is based on net or gross prices.
Returns:
- Price of entire item on which tax calculation is based
- getTaxItems(): Collection
Tax items representing a tax breakdown for the SumItem.
Returns:
- tax items representing a tax breakdown for the SumItem
See Also: