Generate an Invoice object (data in the internal invoice format) from spreadsheet data and a Mapping.

Constructors

Methods

Constructors

Methods

  • Transform invoice spreadsheet data to invoice data in the internal format via a mapping.

    Parameters

    • dataBuffer: Uint8Array<ArrayBufferLike> | WorkBook

      the spreadsheet data either as a Uint8Array or an XLSX.WorkBook

    • format: string

      one of the supported invoice formats, see FormatFactoryService.listFormatServices

    • mapping: Mapping

      the mapping definition

    Returns Invoice

    the invoice data in the internal format