67 Commits
Author SHA1 Message Date
safavimohadeseh78 9528056036 feat(shayegan): per-product item code and auto customer Account/Put 2026-10-28 16:51:47 +03:30
mohmdsdgandCursor 4ef2de8583 fix(products): force direct_price=1 when saving a manual price
Keeps weight-based live enrich from replacing an explicit stored mid price.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 11:38:46 +03:30
mohmdsdgandCursor 1c7ea16300 fix(sse): send per-product trade_open from server trading hours
The list stream must tell clients whether each product is open so the device clock cannot reopen a closed shop.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 12:58:14 +03:30
mohmdsdgandCursor e4e9c74872 fix(product): separate list and TV visibility toggles
Product active toggle now drives show_in_list; TV has its own endpoint and no longer requires active.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 10:16:35 +03:30
mohmdsdg 6b5b490e2b added accounting failing handles 2026-08-27 16:16:20 +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 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 bd8284e4f8 added setting for user 2026-08-16 22:00:23 +03:30
mohmdsdgandCursor f421fcb83f Add formula-based product pricing (P/W/MG) for Parsian-style unit prices.
Port FormulaPriceService from colleague app so admins can compute a single unit price from reference mid, weight, and wage instead of offset coefficients.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 16:47:29 +03:30
mohmdsdg 06b3113b98 fix bug of pargar 2026-07-26 14:15:26 +03:30
mohmdsdg fa15b80c42 fix tadil bug 2026-07-21 16:20:36 +03:30
mohmdsdg 69538226d2 fix bugs 2026-07-16 14:33:57 +03:30
mohmdsdg 34bf65bc37 fix some bugs 2026-07-14 13:45:59 +03:30
mohmdsdg 277cf31d93 fix bug 22/4 2 2026-07-13 19:03:30 +03:30
mohmdsdg 7eb4650b80 fix bug in 22/4 2026-07-13 13:31:44 +03:30
mohmdsdg 239736aefd fixed some bugs 2 2026-07-08 17:13:04 +03:30
mohmdsdg a4e98d8047 fix some handling 3 2026-07-08 12:45:14 +03:30
mohmdsdg d2843d79a0 added some keys into setting 2026-07-07 14:34:00 +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 e3a883d224 add to archive added 2026-07-01 20:14:47 +03:30
mohmdsdg cd81ea8af0 fix kashkool 2026-06-30 21:44:39 +03:30
mohmdsdg 686562622d ghatre changes 2026-06-29 18:22:41 +03:30
mohmdsdg 3801e5ee88 added some feature for accounting and price 2026-06-28 15:16:39 +03:30
mohmdsdg 6ebd02beb8 fixed show true when price is 0 4 2026-06-22 20:09:56 +03:30
mohmdsdg eb4eff8002 dashboard in better style 2026-06-21 21:44:44 +03:30
mohmdsdg b66a8611cd added wss tools 2026-06-17 21:26:08 +03:30
mohmdsdg cc5808e755 fallback handled 2026-06-17 16:13:18 +03:30
mohmdsdg c3b868c6b5 chart fixed 2026-06-17 12:12:35 +03:30
mohmdsdg e9ddcacdb6 fix bug ۲ 2026-06-15 00:58:15 +03:30
mohmdsdg 345fbcd929 fix bug 2026-06-15 00:52:13 +03:30
mohmdsdg b021acde56 fix bug 2026-06-14 22:00:21 +03:30
mohmdsdg b84b2df01a fix bug 2026-06-14 21:09:43 +03:30
mohmdsdg 6f86e8242c fix price 2 2026-06-14 13:31:32 +03:30
mohmdsdg 91a82c06e4 khanegi setting and prices records 2026-06-13 17:35:40 +03:30
mohmdsdg f8c96a420f store 5 2026-06-13 11:17:32 +03:30
mohmdsdg 62dc555196 store 2 2026-06-12 20:10:14 +03:30
mohmdsdg 98e1fe969c store 2026-06-12 19:49:53 +03:30
mohmdsdg 11fb7272cb added kashkool 5 2026-06-12 19:23:09 +03:30
mohmdsdg ebaeb441c5 new check for kashkol ۴ 2026-06-12 17:02:12 +03:30
mohmdsdg 8540d57abc new check for kashkol 3 2026-06-12 16:55:22 +03:30
mohmdsdg 2d177ad581 added kashkool 2026-06-11 22:08:47 +03:30
mohmdsdg a21dbcf3e1 fix bug 2 2026-06-11 21:17:40 +03:30
mohmdsdg b5d2b878de fix bug 2026-06-11 19:23:16 +03:30
mohmdsdg f329419c3a fix bug 2026-06-11 16:41:28 +03:30
mohmdsdg 76563be5cd fix migrations 8 2026-06-11 16:09:52 +03:30
mohmdsdg 85988bc212 added merge wallet 5 2026-06-10 18:38:01 +03:30
mohmdsdg 539e38d034 fix wallet 2026-06-10 13:11:51 +03:30
mohmdsdg 9f4f0c0145 fix amount 8 2026-06-09 16:44:02 +03:30
mohmdsdg e83afb89d5 fix amount 5 2026-06-09 12:43:41 +03:30