Class LineOperationService

Represents a service that provides operations for manipulating invoice lines.

Hierarchy

Implements

Constructors

Properties

configService: ConfigService
db: Dexie
http: AxiosInstance
methodName: string = 'invoice'
moduleName: string = 'invoices'
printJobService: PrintJobService
printTemplateService: PrintTemplateService
printerService: PrinterService
sectionItemService: ISectionItemService
tillService: ITillService

Methods

  • Calculates the rewarded credit for an invoice.

    Parameters

    • invoice: IInvoice

      The invoice to calculate the rewarded credit for.

    • aboveInvoiceAmount: number

      The minimum invoice amount required to be eligible for rewarded credit.

    • includeServiceCharge: boolean

      Whether to include the service charge in the calculation.

    • includeTax: any

      Whether to include the tax in the calculation.

    Returns void

Generated using TypeDoc