Add formula price controls to the product editor.

Admins can enable a reference-based formula (P/W/MG) with live calculated unit price preview, matching the colleague-app pricing flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-10 16:47:39 +03:30
co-authored by Cursor
parent 7e043b24be
commit 4dde172ed7
7 changed files with 450 additions and 10 deletions
+2
View File
@@ -37,6 +37,8 @@ export interface Product{
prices: MethodePrices[]
direct_price: number
app_price?: boolean
price_formula_enabled?: boolean
price_formula?: string | null
price: number
price_profit?: number
price_offset_percent?: number