feat(product): add show_in_list toggle and TV price formula UI

- show_in_list switch in product editor
- TvFormulaPriceSection component (blue theme) shown when show_on_tv is on
- Form defaults, model type, and submit logic for new fields

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-19 11:51:57 +03:30
co-authored by Cursor
parent c332e9df24
commit 2ab99255da
4 changed files with 224 additions and 0 deletions
+3
View File
@@ -27,6 +27,7 @@ export interface Product{
show: boolean
show_in_assets?: boolean
show_on_tv?: boolean
show_in_list?: boolean
trade_by_quantity?: boolean
override_trading_hours?: boolean
use_last_price_if_zero?: boolean
@@ -40,6 +41,8 @@ export interface Product{
app_price?: boolean
price_formula_enabled?: boolean
price_formula?: string | null
tv_price_formula_enabled?: boolean
tv_price_formula?: string | null
price: number
price_profit?: number
price_offset_percent?: number