Commit Graph
51 Commits
Author SHA1 Message Date
mohmdsdgandCursor c5fd3b45fe feat(tahesab): pump pending documents slowly from admin, not schedule
Send leftover orders and charges one-by-one with a gap so Tahesab is not rate-limited, skip already-synced rows, and expose start/stop plus progress on existing status APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 20:48:14 +03:30
mohmdsdg 92d8f2e9b3 fix scadule for getting price 2026-09-02 18:14:32 +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 050bd26318 Add gold credit feature gated by SuperAdmin enable_gold_credit.
Port tables, APIs, and overdue cron from goldali, default the flag off, and keep customer routes behind auth.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 00:17:01 +03:30
mohmdsdgandCursor 63195718a2 fix(settings): drop program-settings last-good cache and prefer montzar
Stale Redis overlay and SMS-origin-first fetch kept feature flags like customer_special_pricing false after SuperAdmin turned them on. Always fetch live and try adm.montzar.ir first.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-29 22:39:08 +03:30
mohmdsdgandCursor cecb84bad9 Allow erase-bad-buy when the orders row was already deleted.
Find orphan buy transactions or accept --gold/--transaction so wallet gold can still be stripped and cash recharged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-29 14:08:51 +03:30
mohmdsdg 7f74a951d3 script added 2026-08-29 14:04:13 +03:30
mohmdsdg 2c31595b5f fix transaction bug 2026-08-27 14:20:19 +03:30
mohmdsdg acf229006e fix transaction bug 2026-08-27 14:01:34 +03:30
mohmdsdg ad78545ebd update setting 2026-08-26 12:56:57 +03:30
mohmdsdgandCursor b21b136711 fix(settings): honor last-price switch and overlay only SuperAdmin access flags
Stored DB prices were treated as live quotes, and SuperAdmin overlay overwrote tenant keys like trading hours. Keep overlay to the 14 access flags and hide fallback prices when the panel says so.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 03:01:07 +03:30
mohmdsdgandCursor 1c8ab4b725 feat(schedule): add schedule:bootstrap and minute-precise automation runs
Install per-module schedule:run cron from artisan, store sms/in_app send minutes, and match scheduled triggers at exact HH:mm Tehran time.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 22:13:06 +03:30
mohmdsdgandCursor 995f6984ed feat(automations): add run-now test endpoint and sends log table
Enable immediate automation test runs without waiting for the scheduled hour, expose send history for debugging, and return all SuperAdmin overlay keys on refresh instead of only enable_automation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 21:46:13 +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 b28a98938e feat(settings): add menu/show_to_user and public get_settings for client apps
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 15:32:35 +03:30
mohmdsdgandCursor 5c542e2733 fix(settings): never plant deploy seed defaults on restore-from-backup
Ignore limangold/payping seed URLs from backup or superadmin when filling;
keep any real local value untouched unless force-overwrite.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 12:48:10 +03:30
mohmdsdgandCursor 3eac5bcb3a fix(settings): treat limangold deploy default as refillable from superadmin
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 12:45:52 +03:30
mohmdsdgandCursor 1cb8c40607 fix(settings): never overwrite existing values on restore-from-backup
Prefer superadmin over stale backup defaults like limangold.ir when filling empty keys.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 12:45:33 +03:30
mohmdsdgandCursor d2fd315e8a setting pushed
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-23 22:34:18 +03:30
mohmdsdg 657c10d1cc added automation 2026-08-23 14:16:00 +03:30
mohmdsdgandCursor 924234bb19 fix(settings): PHP sync for runtime can_edit after deploy
Force can_edit=1 for Montzar/price runtime keys via settings:deploy
and settings:sync-runtime-can-edit, so tenant DB stays correct even
when an older deploy SQL is still on the server.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 21:07:12 +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
MahdiandCursor 71a48c9c08 Add SuperAdmin SMS probe command and per-version enable-remote helper.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 15:33:46 +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 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
mahmood 933424ddfc Fix some for sign body to montify and not get 401 error| 2026-07-27 01:36:02 +03:30
mohmdsdg 06b3113b98 fix bug of pargar 2026-07-26 14:15:26 +03:30
mohmdsdg 64a4a4ca95 fix pargar bugs 6 2026-07-21 14:23:26 +03:30
mohmdsdg b4edb7390c fix buy and sell information 3 2026-07-09 17:55:55 +03:30
mohmdsdg 5cbcf2fd52 fixed some bugs 2026-07-08 16:42:52 +03:30
mohmdsdg 0e8ad469b1 fixed some bugs 2026-07-08 15:51:20 +03:30
mohmdsdg 4af6689c11 fix some handling 5 2026-07-08 13:40:43 +03:30
mohmdsdg 771080d68c fix some handling 4 2026-07-08 13:15:29 +03:30
mohmdsdg 3ff11dcd75 added test for channel 2026-07-07 16:14:11 +03:30
mohmdsdg 35f6aac560 wallet handling 4 2026-06-15 15:06:34 +03:30
mohmdsdg fae79f8922 wallet handling 2 2026-06-15 14:59:52 +03:30
mohmdsdg db0cc5f1a6 fix price force refresh 2 2026-06-14 12:33:29 +03:30
mohmdsdg 91a82c06e4 khanegi setting and prices records 2026-06-13 17:35:40 +03:30
mohmdsdg 80bcfbf5cf added kashkool 2 2026-06-11 22:22:31 +03:30
mohmdsdg b5d2b878de fix bug 2026-06-11 19:23:16 +03:30
mohmdsdg 85988bc212 added merge wallet 5 2026-06-10 18:38:01 +03:30
mohmdsdg efd48c12a9 added merge wallet 4 2026-06-10 18:25:05 +03:30
mohmdsdg 0cf7511257 added merge wallet 3 2026-06-10 17:54:19 +03:30
mohmdsdg c40ac0a3fe added price_offset_percent 2026-06-02 16:00:33 +03:30
mohmdsdg 0f89a9c567 chart handled 2026-06-02 12:24:54 +03:30
gholak tala ba8e2950e4 NASER fix some issues 2026-02-16 09:29:37 +00:00