Instance Method

price(unitPrice:quantity:includedTax:)

Specify the price and quantity of the invoice item in the currency of the Transaction. Convenient for automatically setting the gross and net total using the unit price multiplied by the quantity.

Declaration

@discardableResult func price(unitPrice: Decimal, quantity: Decimal = 1, includedTax: Decimal = 0) -> InvoiceItemBuilder

Return Value

The current InvoiceItemBuilder instance for fluent access.

Parameters

unitPrice

The unit price.

quantity

The quantity of units.

includedTax

Specifies the amount of tax included in the unit price.