diff --git a/src/lib/types.ts b/src/lib/types.ts index e876429..756ff24 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -1422,6 +1422,30 @@ export interface StockPurchaseItem extends BaseRecord { }; } +// ─── Item history popover ──────────────────────────────────────────── + +/** Per-supplier purchase history for a single item. */ +export interface ItemHistorySupplier { + supplier_id: string; + supplier_name: string; + last_cost: number; + last_bought_at: string; + times_bought: number; + last_order_id: string; +} + +/** Other quotes to the same customer / other companies for the same SKU. */ +export interface ItemHistoryOtherQuote { + quote_id: string; + quote_number: string; + company: string; + customer_name: string; + status: string; + selling_price: number; + quoted_at: string; + days_ago: number; +} + /** Last time this SKU was on a fulfilled order. */ export interface ItemHistoryLastSold { selling_price: number;