Interface IInvoiceOperationService

Interface for invoice operation service that extends line operation service

Hierarchy

Implemented by

Properties

db: Dexie
moduleName: string

Methods

  • Adds a discount to an invoice

    Parameters

    • invoice: IInvoice

      The invoice to add the discount to

    • discountType: CalcType

      The type of discount to add

    • amountOrPercent: number

      The amount or percent of the discount

    • Optional calcFlow: CalcFlow

      The calculation flow to use for the discount

    Returns IInvoice

    The updated invoice with the added discount

  • Retrieves multiple entities with optional pagination and filtering.

    Parameters

    • params: any

      [UNUSED PARAMETER, KEPT FOR POSSIBLE FUTURE USE] Filtering parameters.

    • options: {
          page?: number;
          pageSize?: number;
      }

      Query options including pagination.

      • Optional page?: number
      • Optional pageSize?: number

    Returns Promise<{
        count: number;
        list: IInvoice[];
        page: number;
        pageSize: number;
    }>

    An object containing the retrieved entities and total count.

Generated using TypeDoc