feat: add PaymentBatch types and Invoice.payment_batch
This commit is contained in:
parent
3290803e0b
commit
5fec004a46
1 changed files with 11 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ export interface Invoice {
|
|||
source_filename: string;
|
||||
notes: string;
|
||||
pdf_file: string; // PB file URL
|
||||
payment_batch: string; // relation -> PaymentBatch.id; "" when unpaid
|
||||
created: string;
|
||||
updated: string;
|
||||
}
|
||||
|
|
@ -47,6 +48,16 @@ export interface InvoiceLine {
|
|||
country_of_origin: string;
|
||||
}
|
||||
|
||||
export interface PaymentBatch {
|
||||
id: string;
|
||||
batch_ref: string;
|
||||
payment_date: string; // ISO date "YYYY-MM-DD"
|
||||
pop_file: string; // PB file URL (relative path)
|
||||
notes: string;
|
||||
created: string;
|
||||
updated: string;
|
||||
}
|
||||
|
||||
// Computed stats for a stock code (computed on the fly in the UI)
|
||||
export interface StockCodeStats {
|
||||
totalQty: number;
|
||||
|
|
|
|||
Loading…
Reference in a new issue