Skip to content

SudoSOS Back-end API / html/invoice.html / IInvoicePdf

Interface: IInvoicePdf ​

Properties ​

address ​

ts
address: IInvoiceAddress;

addressee ​

ts
addressee: string;

attention ​

ts
attention: string;

"For the attention of" recipient line. Rendered as Attn. <name> between the addressee and the street, omitted entirely when empty.


customerNumber ​

ts
customerNumber: string;

The recipient User.id, shown as "Customer number".


date ​

ts
date: string;

ISO date string, displayed as the issue date.


dueDate ​

ts
dueDate: string;

ISO date string, displayed as the payment due date.


identifier ​

ts
identifier: string;

Numeric identifier (Invoice.id), shown as "Sequence number".


lineItems ​

ts
lineItems: IInvoiceLineItem[];

Line-items page: one row per sub_transaction_row, sorted by id.


reference ​

ts
reference: string;

Human-facing invoice reference (e.g. BAC-0).


subject ​

ts
subject: string;

Free-text invoice subject; rendered as a "Subject" section above the Total headline. May be empty.


subtotalExcl ​

ts
subtotalExcl: number;

totalIncl ​

ts
totalIncl: number;

totalVat ​

ts
totalVat: number;

vatBreakdown ​

ts
vatBreakdown: IInvoiceVatBand[];

Cover-page totals: 3-row matrix per VAT band.