From 403ac152e0dc207f6e64fac46dc219da235233b6 Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 26 Aug 2026 23:19:45 +0200 Subject: [PATCH] feat(quotes): add is_no_quote?: boolean to Quote interface Mirrors the is_template boolean. Wires the new field through the type system before any service-layer code touches it. --- src/lib/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/types.ts b/src/lib/types.ts index 45592bd..384cffe 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -245,6 +245,13 @@ export interface Quote extends BaseRecord { validity_days: number | null; /** True for templates — reusable scaffolding, not a real customer quote. */ is_template: boolean; + /** + * True for "no-quote" pricing records — formal pricing the operator + * sent out (e.g. for a customer delivery note) that isn't a real + * sales quote. Distinct from `is_template` (reusable scaffolding). + * Optional: existing rows pre-date this column. + */ + is_no_quote?: boolean; /** If this template was cloned from a real quote, the source quote id. */ template_source_id: string; /** If this quote was generated from a template, the template quote id. */