Commit Graph
95 Commits
Author SHA1 Message Date
mohmdsdgandCursor c1e2bb5e9b fix zarin duplicate hesab and convert mesghal unit price to gram before cash/weight.
Reuse an existing Zarin hesab instead of a second addhesab, and stop rial-locked orders from treating mesghal as per-gram.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-29 13:50:12 +03:30
mohmdsdg acf229006e fix transaction bug 2026-08-27 14:01:34 +03:30
mohmdsdgandCursor 885ed33e6e feat(accounting): document colleague trades on configured accounts
Post Montzar-covered buy/sell to Zarin/Tahesab/Pargar using montzar_account_* settings, and harden public storage URL/MIME handling for uploads.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 16:59:27 +03:30
mohmdsdg 657c10d1cc added automation 2026-08-23 14:16:00 +03:30
mohmdsdg 7bdb2c91a0 fix(settings): read SuperAdmin overlay via ConfigService everywhere 2026-08-22 15:10:54 +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
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 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 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 06b3113b98 fix bug of pargar 2026-07-26 14:15:26 +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 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 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 a809a843b8 fix pargar bug 2026-07-20 15:52:42 +03:30
mohmdsdg fc9de5198c new feature on sms and some bugs fixed 2026-07-18 22:22:01 +03:30
mohmdsdg 518334da11 fixed bugs 2026-07-18 17:49:36 +03:30
mohmdsdg 285a159762 fix profit value after each order 2 2026-07-18 17:37:41 +03:30
mohmdsdg b66cd5e8f9 fix profit value after each order 2026-07-18 16:38:46 +03:30
mohmdsdg 41c2a20fd0 fix ehraz 2026-07-16 11:36: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 47a2f8e6bf change transition structure 2 2026-07-10 23:29:36 +03:30
mohmdsdg 028c5d5938 change transition structure 2026-07-10 22:52:28 +03:30
mohmdsdg abc58c4180 fix bug ۲ 2026-07-10 00:19:30 +03:30
mohmdsdg a26369f852 fix buy and sell information 4 2026-07-09 18:17:09 +03:30
mohmdsdg c0c84a9b39 fix buy and sell information 2 2026-07-09 17:47:27 +03:30
mohmdsdg 130fadc193 fix some handling 2026-07-08 11:09:11 +03:30
mohmdsdg 7ac7bbdb90 added pargar 2026-07-05 16:43:34 +03:30
mohmdsdg 4ef0dfb2c0 added percent in product price 2026-07-04 18:00:57 +03:30
mohmdsdg 4dea2fb212 fix amount 2026-07-04 12:06:56 +03:30
mohmdsdg 1ce2e73ea9 product time changed 5 2026-07-02 21:24:26 +03:30
mohmdsdg 4b73860adc product time changed 3 2026-07-02 20:59:26 +03:30
mohmdsdg 17e50de53e fix sql 2026-07-02 01:26:26 +03:30
mohmdsdg e738d44667 fix some bug 2026-07-01 22:27:51 +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 3801e5ee88 added some feature for accounting and price 2026-06-28 15:16:39 +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 7b05db0ff0 added assets into stream 2026-06-27 15:51:44 +03:30