fix(types): restore ItemHistorySupplier + ItemHistoryOtherQuote (dropped during merge resolution)
The merge of feature/order-sprint-item-history into main concatenated src/lib/types.ts by appending the last 50 lines of the feature branch's version. The two helper interfaces ItemHistorySupplier and ItemHistoryOtherQuote were defined earlier in the file (lines 1416-1433) and were dropped, breaking the references in ItemHistory and the import in item-history-service.ts. This commit restores them. Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
parent
43011d4d5e
commit
c9e5362cf1
1 changed files with 24 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue