Commit Graph
15 Commits
Author SHA1 Message Date
safavimohadeseh78 741faa38fb . 2026-09-08 14:06:28 +03:30
mohmdsdgandCursor 0b1e5c687b feat(order): wait for colleague callback before settling wallet
Keep cover orders pending until colleague sts 2/4/6 via callback or 35s poll. Nightly prices:prune also drops old log tables.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 15:55:03 +03:30
mohmdsdgandCursor 4c2200a0e0 Widen order price columns so current gold rial quotes persist.
Gold gram prices now exceed the old DECIMAL/INT range and MySQL 1264 aborted buys; store money fields as DECIMAL(20,4) and hide the raw SQL error from the app.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 16:14:02 +03:30
mohmdsdg 89014821c5 fix all error 3 2026-08-22 16:50:49 +03:30
mohmdsdgandCursor a321ebdaad feat(product): add show_in_list toggle and TV price formula
- New `show_in_list` column to control product visibility in customer list
- New `tv_price_formula_enabled` + `tv_price_formula` columns for separate TV pricing
- FormulaPriceService: isTvEnabled() and calculateTvForProduct()
- listTvProducts applies TV formula overrides before returning
- filterProductData handles both new field sets

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 11:51:54 +03:30
mohmdsdgandCursor b0296c6e94 feat(server): evaluate price alerts per product and fix gold discharge rounding
Alerts now bind to a product_id and share one evaluator; displayed gold within a rounding step discharges the full wallet.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 22:23:20 +03:30
mohmdsdgandCursor e158831fd3 feat(server): add show_on_tv product flag and public /tv products API
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 17:17:01 +03:30
mohmdsdg dc095e47cd fix some bugs 2026-07-14 22:03:39 +03:30
mohmdsdg 3ac8d2215e added pargar 2 2026-07-05 21:15:24 +03:30
mohmdsdg 3373bc82ca added percent in product price 3 2026-07-04 22:14:18 +03:30
mohmdsdg ed5bd74986 added percent in product price 2 2026-07-04 22:06:20 +03:30
mohmdsdg 017ab348c7 added wss tools 6 2026-06-18 19:32:28 +03:30
mohmdsdg 285767fcd3 added merge wallet 2026-06-10 16:57:31 +03:30
mohmdsdg 539e38d034 fix wallet 2026-06-10 13:11:51 +03:30
mohmdsdg fe4d85325e fix withdraw error and Transation table error 2026-06-10 09:49:35 +03:30