Commit Graph
62 Commits
Author SHA1 Message Date
mohmdsdgandCursor 8984899042 fix(settings): push trading-hours changes to live user prices immediately
Recompute home price display on save, broadcast settings over SSE, and keep last-price status in sync without a user refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 02:29:00 +03:30
mohmdsdgandCursor 7e8979d78d fix(settings): honor per-day trading hours and refresh SuperAdmin overlay
Use trading_hours_by_day for close_price gates, prefer public SuperAdmin fetch, and add refresh endpoint/command so stale last-good cache no longer keeps switches like enable_automation off.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 21:22:44 +03:30
mohmdsdgandCursor 352bb9976d feat(settings): enable_automation gate; reject stale montzar quote jumps
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 16:15:52 +03:30
mohmdsdg 7bdb2c91a0 fix(settings): read SuperAdmin overlay via ConfigService everywhere 2026-08-22 15:10:54 +03:30
mohmdsdgandCursor b7eed369c6 fix(settings): force can_edit=1 for runtime keys in API and DB writes
editable_only now includes RUNTIME_KEYS; normalize can_edit in responses.
UpdateConfig and montzar login persist can_edit=1. SQL override moved before COMMIT.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 20:15:28 +03:30
mohmdsdgandCursor 027170a33f fix(settings): fee only from fee_service_charge_percentage; deploy:tenant
Remove service_charge_percentage alias and config/fee.php fallback (empty → 0).
Move code-managed Montzar/price runtime keys to can_edit=1 in deploy SQL.
Add settings:deploy and deploy:tenant artisan commands for server deploy.
Advanced admin settings merge runtime keys from local DB; block manual edits.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 19:55:29 +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
mohmdsdg d651ff9d6c fix dome bugs 2026-08-15 18:22:58 +03:30
safavimohadeseh78andCursor 4468eabd03 Add referral_show setting and keep existing setting values intact.
Allow hiding the referral field on user registration via settings SQL and ConfigService, and document SQL-only Cursor rules that never overwrite live values.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 08:26:13 +02:00
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
mohmdsdg eaff9dead2 added gholak 2026-08-01 17:30:14 +03:30
mohmdsdg 381d28aae5 fix some bugs 2026-07-29 19:57:32 +03:30
mohmdsdg 745f7fcfd6 fix some bugs from fee 2026-07-28 10:33:11 +03:30
mohmdsdg 26f78005fc fix some bugs 2026-07-27 17:29:06 +03:30
mohmdsdg 107cf5b291 fix notif 2026-07-24 16:49:42 +03:30
mohmdsdg 8a4a406e66 added zarin 2026-07-23 20:24:58 +03:30
mohmdsdg 133f4156c6 all customer from pargar fixing 3 2026-07-22 01:05:00 +03:30
mohmdsdg 227534a493 fix some bugs 2 2026-07-21 21:23:26 +03:30
mohmdsdg 49e80a1b97 fix pargar bugs 2 2026-07-21 13:25:18 +03:30
mohmdsdg 10a510529d added banning for when amount is under 0 2026-07-20 21:29:30 +03:30
mohmdsdg fc9de5198c new feature on sms and some bugs fixed 2026-07-18 22:22:01 +03:30
mohmdsdg 7ac7bbdb90 added pargar 2026-07-05 16:43:34 +03:30
mohmdsdg 5a568f971d product time changed 2 2026-07-02 20:48:49 +03:30
mohmdsdg 552d9b07af product time changed 2026-07-02 20:18:59 +03:30
mohmdsdg 17e50de53e fix sql 2026-07-02 01:26:26 +03:30
mohmdsdg ffab326aa0 fix some bugs 2026-07-01 23:59:59 +03:30
mohmdsdg a69316e0de fix some bug 2026-07-01 20:59:24 +03:30
mohmdsdg bac13af702 fix order 2026-07-01 16:33:15 +03:30
mohmdsdg 235b835100 fix some setting show 2026-07-01 15:47:24 +03:30
mohmdsdg aeeb3bd3ed fix kashkool 2026-06-30 22:17:09 +03:30
mohmdsdg cd81ea8af0 fix kashkool 2026-06-30 21:44:39 +03:30
mohmdsdg b0dacc2423 fix price 2026-06-29 02:11:36 +03:30
mohmdsdg 3801e5ee88 added some feature for accounting and price 2026-06-28 15:16:39 +03:30
mohmdsdg 9f92466ada fixed price 3 2026-06-28 11:03:54 +03:30
mohmdsdg 9b9685f477 fixed price 2 2026-06-28 10:58:37 +03:30
mohmdsdg 14055c5770 fixed price 2026-06-28 10:51:56 +03:30
mohmdsdg dec13e8537 fixed price 2026-06-28 10:46:09 +03:30
mohmdsdg 38dd8253f0 fix report 2 2026-06-24 01:32:32 +03:30
mohmdsdg 7a18d76ad9 fix report 2026-06-24 01:17:34 +03:30
mohmdsdg 8bdec7a47f fix bugs 2026-06-16 19:53:49 +03:30
mohmdsdg b021acde56 fix bug 2026-06-14 22:00:21 +03:30
mohmdsdg 0c4cbd7c12 fix bug 2026-06-14 21:42:21 +03:30
mohmdsdg db0cc5f1a6 fix price force refresh 2 2026-06-14 12:33:29 +03:30
mohmdsdg 7b18009e9b added kashkool 3 2026-06-12 19:14:15 +03:30
mohmdsdg e3bc50e2c6 new check for kashkol 2026-06-12 16:06:37 +03:30
mohmdsdg 2d177ad581 added kashkool 2026-06-11 22:08:47 +03:30
mohmdsdg 2636df99ad fix bug 2026-06-11 20:40:47 +03:30
mohmdsdg 285767fcd3 added merge wallet 2026-06-10 16:57:31 +03:30
mohmdsdg c082e5eb42 setting changed 2 2026-06-05 17:43:02 +03:30
mohmdsdg a9f468c51b zarbox added 7 2026-06-04 17:39:06 +03:30