mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
feat: full wagon cancel, leg board, wagon dates
feat(freight): editable train leg times, SL invoice payer
This commit is contained in:
@@ -959,6 +959,14 @@ export interface IInvoiceCompanyProfile {
|
||||
reference: string | null;
|
||||
}
|
||||
|
||||
/** Shipping line an invoice is billed to, when `companyId` is null (see `IInvoice`). */
|
||||
export interface IInvoiceShippingLineCompany {
|
||||
id: string;
|
||||
name: string;
|
||||
email?: string | null;
|
||||
phoneNumber?: string | null;
|
||||
}
|
||||
|
||||
/** A single billed line on an invoice. */
|
||||
export interface IInvoiceLine extends BaseEntity {
|
||||
invoiceId: string;
|
||||
@@ -975,12 +983,15 @@ export interface IInvoiceLine extends BaseEntity {
|
||||
|
||||
export interface IInvoice extends BaseEntity {
|
||||
invoiceNumber: string;
|
||||
/** Customer (company) the invoice is billed to. */
|
||||
companyId: string;
|
||||
/** Customer (company) the invoice is billed to. Null on a shipping-line invoice — see `shippingLineCompanyId`. */
|
||||
companyId: string | null;
|
||||
company?: IInvoiceCompany;
|
||||
/** Specific company profile billed. */
|
||||
companyProfileId: string;
|
||||
companyProfile?: IInvoiceCompanyProfile;
|
||||
/** The shipping line billed, when this invoice bills batched shipping-line credits. Mutually exclusive with `companyId`. */
|
||||
shippingLineCompanyId?: string | null;
|
||||
shippingLineCompany?: IInvoiceShippingLineCompany;
|
||||
totalAmount: number;
|
||||
/** Cumulative amount settled so far (supports partial payment). */
|
||||
paidAmount: number;
|
||||
|
||||
Reference in New Issue
Block a user