Protected configReadonly dbReadonly httpReadonly methodReadonly moduleReadonly optionsProtected printProtected printProtected printerProtected sectionProtected tillAdjusts the grand total of the invoice by the deduction balance
The invoice to adjust.
void
Calculate the delivery charge of an invoice
The invoice object containing delivery charge and type
The updated invoice object with calculated grand total
Calculate the invoice subtotal without considering take out
The invoice object containing invoice lines
The updated invoice object with calculated subtotals
Calculates the rewarded credit for an invoice.
The invoice to calculate the rewarded credit for.
The minimum invoice amount required to be eligible for rewarded credit.
Whether to include the service charge in the calculation.
Whether to include the tax in the calculation.
Calculates and sets the rewarded points for the given invoice based on various conditions.
The invoice to calculate rewarded points for.
void
Calculates the rounding for an invoice based on the given parameters.
The invoice to calculate the rounding for.
The base value to round to.
Whether to round up or down.
Whether to apply rounding only for cash payments.
Calculate and set the service charge for a given invoice. The method updates the service_charge and grand_total fields of the invoice.
invoice to calculate the service charge for
service charge rate. e.g. 0.1 for 10%
Calculate the tax subtotal ratio for the invoice.
The invoice for which the ratio is calculated.
The calculated ratio as a number.
Retrieves multiple entities with optional pagination and filtering.
[UNUSED PARAMETER, KEPT FOR POSSIBLE FUTURE USE] Filtering parameters.
Query options including pagination.
An object containing the retrieved entities and total count.
Generated using TypeDoc
Interface for a generic service.