ModelInvoices module
Item
A model in the Invoices module, with 30 members for templates, 27 API properties and 30 members for admin templates.
Templates view
Properties 30
Take no arguments.
-
#
getUnitAmountAsMoney() -
Money - Gets the amount for a single unit (quantity = 1) as a Money object. Represents the value per unit before tax and discount are applied.
-
#
getUnitDiscountAsMoney() -
Money - Gets the discount for a single unit (quantity = 1) as a Money object. Represents the discount value per unit.
-
#
getUnitTaxAsMoney() -
Money - Gets the tax for a single unit (quantity = 1) as a Money object. Represents the tax value per unit.
-
#
getUnitTotalAsMoney() -
Money - Gets the total for a single unit (quantity = 1) as a Money object. Represents the final value per unit calculated as
Unit Amount - Unit Discount + Unit Tax. -
#
getAmountAsMoney() -
Money - Gets the amount for the entire quantity as a Money object. Represents the value before applying tax and discount (
Unit Amount × Quantity). -
#
getDiscountAsMoney() -
Money - Gets the discount for the entire quantity as a Money object. Represents the total discount applied (
Unit Discount × Quantity). -
#
getTaxAsMoney() -
Money - Gets the tax for the entire quantity as a Money object. Represents the total tax calculated (
Unit Tax × Quantity). -
#
getTotalAsMoney() -
Money - Gets the total for the entire quantity as a Money object. Represents the final value calculated as
Amount - Discount + Tax. -
#
isRefundableType() -
bool - Is this item type eligible to be included in a refund? Type-level check only — independent of the parent invoice's refundability state (see {@see \Invoices\Models\Invoice::isRefundable()} for that).
-
#
getId() -
?int -
#
getType() -
?string -
#
getCode() -
?string -
#
getText() -
?string -
#
getQuantity() -
?int -
#
getQuantityUnit() -
?string -
#
getAmount() -
?string - Represents the value before applying tax and discount (
Unit Amount × Quantity). -
#
getRefundItems() -
?Collection<RefundItem> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 27
Read-only values on the record.
-
#
unitAmountAsMoney -
Money - Gets the amount for a single unit (quantity = 1) as a Money object. Represents the value per unit before tax and discount are applied.
-
#
unitDiscountAsMoney -
Money - Gets the discount for a single unit (quantity = 1) as a Money object. Represents the discount value per unit.
-
#
unitTaxAsMoney -
Money - Gets the tax for a single unit (quantity = 1) as a Money object. Represents the tax value per unit.
-
#
unitTotalAsMoney -
Money - Gets the total for a single unit (quantity = 1) as a Money object. Represents the final value per unit calculated as
Unit Amount - Unit Discount + Unit Tax. -
#
amountAsMoney -
Money - Gets the amount for the entire quantity as a Money object. Represents the value before applying tax and discount (
Unit Amount × Quantity). -
#
discountAsMoney -
Money - Gets the discount for the entire quantity as a Money object. Represents the total discount applied (
Unit Discount × Quantity). -
#
taxAsMoney -
Money - Gets the tax for the entire quantity as a Money object. Represents the total tax calculated (
Unit Tax × Quantity). -
#
totalAsMoney -
Money - Gets the total for the entire quantity as a Money object. Represents the final value calculated as
Amount - Discount + Tax. -
#
refundableType -
bool - Is this item type eligible to be included in a refund? Type-level check only — independent of the parent invoice's refundability state (see {@see \Invoices\Models\Invoice::isRefundable()} for that).
-
#
id -
?int -
#
type -
?string -
#
code -
?string -
#
text -
?string -
#
quantity -
?int -
#
quantityUnit -
?string -
#
refundItems -
?Collection<RefundItem>
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 30
Take no arguments.
-
#
getUnitAmountAsMoney() -
Money - Gets the amount for a single unit (quantity = 1) as a Money object. Represents the value per unit before tax and discount are applied.
-
#
getUnitDiscountAsMoney() -
Money - Gets the discount for a single unit (quantity = 1) as a Money object. Represents the discount value per unit.
-
#
getUnitTaxAsMoney() -
Money - Gets the tax for a single unit (quantity = 1) as a Money object. Represents the tax value per unit.
-
#
getUnitTotalAsMoney() -
Money - Gets the total for a single unit (quantity = 1) as a Money object. Represents the final value per unit calculated as
Unit Amount - Unit Discount + Unit Tax. -
#
getAmountAsMoney() -
Money - Gets the amount for the entire quantity as a Money object. Represents the value before applying tax and discount (
Unit Amount × Quantity). -
#
getDiscountAsMoney() -
Money - Gets the discount for the entire quantity as a Money object. Represents the total discount applied (
Unit Discount × Quantity). -
#
getTaxAsMoney() -
Money - Gets the tax for the entire quantity as a Money object. Represents the total tax calculated (
Unit Tax × Quantity). -
#
getTotalAsMoney() -
Money - Gets the total for the entire quantity as a Money object. Represents the final value calculated as
Amount - Discount + Tax. -
#
isRefundableType() -
bool - Is this item type eligible to be included in a refund? Type-level check only — independent of the parent invoice's refundability state (see {@see \Invoices\Models\Invoice::isRefundable()} for that).
-
#
getId() -
?int -
#
getType() -
?string -
#
getCode() -
?string -
#
getText() -
?string -
#
getQuantity() -
?int -
#
getQuantityUnit() -
?string -
#
getAmount() -
?string - Represents the value before applying tax and discount (
Unit Amount × Quantity). -
#
getRefundItems() -
?Collection<RefundItem> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.