From 5fec004a4691344d3f4473b077ce948822b1af06 Mon Sep 17 00:00:00 2001 From: Ysterbaard Date: Fri, 18 Sep 2026 18:28:16 +0200 Subject: [PATCH] feat: add PaymentBatch types and Invoice.payment_batch --- app/lib/types.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/lib/types.ts b/app/lib/types.ts index df5ba8f..b5efb61 100644 --- a/app/lib/types.ts +++ b/app/lib/types.ts @@ -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;