Commit Graph
100 Commits
Author SHA1 Message Date
mohmdsdgandCursor 5b2ed2e5fc fix(price-trigger): restrict notifications to SMS only
Remove email/in-app paths and enforce sms action on create/update so
price alerts match the product requirement for SMS-only delivery.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 19:02:46 +03:30
mohmdsdgandCursor 832a7683fb fix(migration): parse error in show_in_list COMMENT SQL string
Use double-quoted PHP string for Persian COMMENT; '' is SQL escaping, not valid inside PHP single quotes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 14:16:46 +03:30
mohmdsdgandCursor 08d51ab1d1 feat(admin): add Montzar partner product list API for settings select
Expose GET /admin/montzar/products using MontzarService::listProductOptions().

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 14:02:48 +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 341b2da2c9 feat(server): expose settings table API and compose get_settings from SA locks plus local edits
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 18:52:29 +03:30
mohmdsdg 5337818396 fix setting bug 2026-08-18 18:32:41 +03:30
mohmdsdgandCursor 351510d500 chore(server): add helper script to run deploy_settings_const.sql
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 17:57:22 +03:30
mohmdsdgandCursor 0afa01eea9 fix(server): queue tiny Pargar gold wallet documents instead of skipping them
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 17:57:22 +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
mohmdsdgandCursor da9f98b958 feat(server): overlay admin get_settings from SuperAdmin program-settings
Fetch public program-settings with 3-origin retry and no Laravel cache so
local DB settings stay in sync with the sold version.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 16:10:37 +03:30
mohmdsdgandCursor 7d405cb83b feat(server): store and apply negative special price profits
Keep signed buy/sell extras so discounts work on quotes and orders, and ignore the nested user clone in this repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 13:11:00 +03:30
mohmdsdg bd8284e4f8 added setting for user 2026-08-16 22:00:23 +03:30
mohmdsdg c3c3a60088 added table of co-woeker requests and new features 4 2026-08-16 20:58:56 +03:30
mohmdsdg 0e45a83088 added table of co-woeker requests and new features 3 2026-08-16 20:46:10 +03:30
mohmdsdg 28fd07d176 added table of co-woeker requests and new features 2 2026-08-16 20:26:23 +03:30
mohmdsdg acd1c2ea20 added table of co-woeker requests and new features 2026-08-16 20:03:18 +03:30
mohmdsdg 6fffd84584 Merge branch 'main' of https://get.feep.ir/khaneghi_abshodeh/khaneghi_server 2026-08-15 18:23:28 +03:30
mohmdsdg d651ff9d6c fix dome bugs 2026-08-15 18:22:58 +03:30
mohmdsdg 52be3eddcb Merge branch 'main' of https://get.feep.ir/khaneghi_abshodeh/khaneghi_server 2026-08-11 22:08:42 +03:30
mohmdsdg cef66ec222 Merge branch 'main' of https://get.feep.ir/khaneghi_abshodeh/khaneghi_server 2026-08-11 16:28:38 +03:30
mohmdsdg 40f0d4f880 fix some bugs 2026-08-11 16:28:01 +03:30
mohmdsdgandCursor fabce6176a Price orders at the provider's real trade rate instead of the mid quote.
montzar_live_price is the midpoint between the colleague's buy and sell rates,
so orders priced straight from it charged the customer less than we pay the
provider and the whole spread was lost on every trade, even though the app
already showed the correct side. Order base price now follows the traded side
(base + spread on buy, base - spread on sell), which also makes price_original
the real cost basis so the dashboard stops counting the provider spread as
profit. Conditional order triggers compare against the same displayed price.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 19:21:56 +03:30
mohmdsdgandCursor 279e4bc881 Enable gated multi-level referral profit and harden chat/SMS notify paths.
Honor enable_customer_level_profit for order referral payouts, and tighten support-chat webhook/SMS plus SuperAdmin SMS panel sync settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 16:48:53 +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 f42ae09d14 fix support issue 2026-08-05 12:56:52 +03:30
mohmdsdg bfb8b91133 added trigger for chat sms 2026-08-04 18:59:38 +03:30
mohmdsdg fab3c2270a added rahimi dashboard 2 2026-08-03 22:21:07 +03:30
mohmdsdg 406ab4387f added rahimi dashboard 2026-08-03 19:42:23 +03:30
mohmdsdg 020219f887 added rahimi 2026-08-03 18:44:27 +03:30
mohmdsdg 9a4a1fec66 fix jibit error 2026-08-03 13:47:01 +03:30
mohmdsdg d360539208 fix title 2026-08-03 11:51:16 +03:30
mohmdsdg ec0fd28efc fix gift 2026-08-02 16:47:19 +03:30
mohmdsdg ef32046e85 بهط شیی 2026-08-02 14:00:00 +03:30
mohmdsdg eaff9dead2 added gholak 2026-08-01 17:30:14 +03:30
mohmdsdg 9642e603e7 fix some show 2026-08-01 16:47:26 +03:30
mohmdsdg c5361a5706 fix some bugs from chart 2026-08-01 15:53:10 +03:30
mohmdsdg 2d713ce592 Merge remote-tracking branch 'origin/montify' into Abshode_Khanegi 2026-08-01 15:52:17 +03:30
mohmdsdg 5efe021f03 fix pargar and login 2026-08-01 14:13:19 +03:30
mohmdsdg 87f0e2beed fix pargar and login 2026-08-01 14:04:01 +03:30
mohmdsdg 6e75b9632b added chat 2 2026-07-30 20:42:56 +03:30
mohmdsdg dcc6ffb3ca added chat 2 2026-07-30 18:06:53 +03:30
mohmdsdg abb778e090 added chat 2026-07-30 15:46:11 +03:30
mohmdsdg f921e97466 fix description 2026-07-29 21:46:48 +03:30
mohmdsdg e8651135d1 added button for site 2026-07-29 20:21:06 +03:30
mohmdsdg 381d28aae5 fix some bugs 2026-07-29 19:57:32 +03:30
mohmdsdg 67c31c9bce fix some bugs 2026-07-29 17:13:19 +03:30
mohmdsdg 16b947adc5 fix some bugs 2026-07-29 17:00:51 +03:30
mohmdsdg dd77e2ce81 fix some bugs from tahesab 2026-07-29 14:58:33 +03:30
mohmdsdg 77e0ba0bb3 fix some bugs from accounting 9 2026-07-28 21:57:29 +03:30
mohmdsdg 736d0a4fd1 fix some bugs from accounting 8 2026-07-28 21:01:42 +03:30
mohmdsdg 09716054ce fix some bugs from accounting 6 2026-07-28 19:08:04 +03:30
mohmdsdg 6bb9af9893 fix some bugs from accounting 5 2026-07-28 18:55:59 +03:30
mohmdsdg 5122d7e2b7 fix some bugs from accounting 4 2026-07-28 18:40:06 +03:30
mohmdsdg d81cea3d4f fix some bugs from accounting 2026-07-28 17:44:24 +03:30
mohmdsdg 91f6b24da4 fix some bugs from zarin 3 2026-07-28 14:57:28 +03:30
mohmdsdg 2c9e969965 fix some bugs from zarin 3 2026-07-28 14:49:55 +03:30
mohmdsdg 3faa071fa5 fix some bugs from zarin 2 2026-07-28 14:28:28 +03:30
mohmdsdg edb664b1db fix some bugs from zarin 2026-07-28 14:15:51 +03:30
mohmdsdg 074b48de95 fix some bugs from zarin 2026-07-28 14:02:23 +03:30
mohmdsdg 745f7fcfd6 fix some bugs from fee 2026-07-28 10:33:11 +03:30
mohmdsdg 7c68115b39 fix some bugs 2026-07-27 22:09:08 +03:30
mohmdsdg 2aed828bac fix some bugs 2026-07-27 21:35:03 +03:30
mohmdsdg d8256b3f20 fix some bugs 2026-07-27 21:01:18 +03:30
mohmdsdg 26f78005fc fix some bugs 2026-07-27 17:29:06 +03:30
mohmdsdg 7d302ecc93 some edits for pargar 2026-07-27 16:05:54 +03:30
mohmdsdg d4fba50845 some edits for pargar 2026-07-27 15:44:21 +03:30
mohmdsdg a849150339 fix bug of pargar 4 2026-07-26 21:17:57 +03:30
mohmdsdg a9c0fb09e6 fix bug of pargar 3 2026-07-26 19:18:16 +03:30
mohmdsdg 8a0a712598 fix bug of pargar 2 2026-07-26 14:52:22 +03:30
mohmdsdg 06b3113b98 fix bug of pargar 2026-07-26 14:15:26 +03:30
mohmdsdg 667e3736fb fix pargar mande 2026-07-25 16:47:30 +03:30
mohmdsdg 22a5e566b4 fix pargar mande 2026-07-25 12:02:58 +03:30
mohmdsdg 52ff3a088d fix notif 3 2026-07-24 22:37:48 +03:30
mohmdsdg 107cf5b291 fix notif 2026-07-24 16:49:42 +03:30
mohmdsdg eacf5181a9 added notif 2 2026-07-23 22:24:39 +03:30
mohmdsdg 69b7ba69b9 added notif 2026-07-23 21:41:51 +03:30
mohmdsdg 8a4a406e66 added zarin 2026-07-23 20:24:58 +03:30
mohmdsdg d8b685524b fixed some bugs 2026-07-23 17:53:10 +03:30
mohmdsdg a405075230 fix borcecu edits 3 2026-07-23 12:28:24 +03:30
mohmdsdg 39cfbc2b67 fix borcecu edits 2 2026-07-23 11:55:18 +03:30
mohmdsdg b5b39ffc37 fix borcecu edits 2026-07-23 11:09:31 +03:30
mohmdsdg 1d02276475 added last seen 3 2026-07-22 18:14:36 +03:30
mohmdsdg 5751e2cd24 added last seen 2 2026-07-22 17:37:33 +03:30
mohmdsdg 692c211ca8 added last seen 2026-07-22 17:17:23 +03:30
mohmdsdg 8165fc37b8 fix trigger bug 2 2026-07-22 14:15:22 +03:30
mohmdsdg 7d02639917 fix trigger bug 2026-07-22 13:32:26 +03:30
mohmdsdg 133f4156c6 all customer from pargar fixing 3 2026-07-22 01:05:00 +03:30
mohmdsdg 01031e9e01 all customer from pargar fixing 2 2026-07-22 00:31:38 +03:30
mohmdsdg 1476f6efb1 all customer fixing added 2026-07-22 00:10:04 +03:30
mohmdsdg 00c51ecf01 fix some bugs 6 2026-07-21 22:28:04 +03:30
mohmdsdg 3f8c47b1fc fix some bugs 5 2026-07-21 22:23:09 +03:30
mohmdsdg 55ce5e83b0 fix some bugs 4 2026-07-21 21:44:06 +03:30
mohmdsdg 80a2eb207a fix some bugs 3 2026-07-21 21:38:48 +03:30
mohmdsdg 356471c9f3 fix some bugs 3 2026-07-21 21:31:16 +03:30
mohmdsdg 227534a493 fix some bugs 2 2026-07-21 21:23:26 +03:30
mohmdsdg fa15b80c42 fix tadil bug 2026-07-21 16:20:36 +03:30
mohmdsdg 468fb95a57 fix pargar bugs 7 2026-07-21 14:33:16 +03:30
mohmdsdg 64a4a4ca95 fix pargar bugs 6 2026-07-21 14:23:26 +03:30
mohmdsdg 38ae7ae627 fix pargar bugs 5 2026-07-21 14:16:27 +03:30