Adds an item to an invoice line. If the item already exists in the invoice, the quantity is increased, otherwise a new line is created.
The invoice to add the item to.
The customer associated with the invoice.
The app configuration.
The item to add to the invoice line.
Optional modifiers: IInvoiceCoreLine[]An array of modifiers to apply to the item.
Optional options: LineOptionsAdditional options for the line.
The updated invoice.
Increases the quantity of an item in an invoice line.
The invoice to increase the item quantity in.
The invoice line to increase the item quantity in.
The quantity of the item to increase.
The updated invoice.
Adds a modifier to a list of modifiers, if the modifier already exists in the list, the quantity is increased, otherwise a new modifier is created.
The list of modifiers to add the modifier to.
The modifier to add to the list.
The updated list of modifiers.
Increases the quantity of a modifier in a list of modifiers.
The list of modifiers to increase the quantity in.
The modifier to increase the quantity of.
Optional quantity: numberThe quantity of the modifier to increase.
The updated list of modifiers.
Changes the discount of an existing invoice line.
The invoice line to change the discount in.
The type of discount to apply.
The amount of the discount to apply.
The updated invoice.
Changes the unit price of an existing invoice line.
The invoice line to change the item price in.
The new price of the item.
The updated invoice.
Changes the unit price of a existing modifier.
The modifier to change the price of.
The new price of the modifier.
The updated list of modifiers.
Duplicates an invoice line
The invoice to duplicate the line in.
The line to duplicate.
The updated invoice.
Retrieves multiple entities with optional pagination and filtering.
[UNUSED PARAMETER, KEPT FOR POSSIBLE FUTURE USE] Filtering parameters.
Query options including pagination.
Optional page?: numberOptional pageAn object containing the retrieved entities and total count.
Decreases the quantity of an item in an invoice line.
The invoice to decrease the item quantity in.
The invoice line to decrease the item quantity in.
The quantity of the item to decrease.
The updated invoice.
Decreases the quantity of a modifier in a list of modifiers.
The list of modifiers to decrease the quantity in.
The modifier to decrease the quantity of.
Optional quantity: numberThe quantity of the modifier to decrease.
The updated list of modifiers.
Overwrites the note of an invoice line.
The invoice line to overwrite the note of.
The new note to overwrite the old note with.
The updated invoice line.
Generated using TypeDoc
Represents a service that provides operations for manipulating invoice lines.