feat: add PaymentBatch types and Invoice.payment_batch

This commit is contained in:
Ysterbaard 2026-09-18 18:28:16 +02:00
parent 3290803e0b
commit 5fec004a46

View file

@ -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;