54 Commits
Author SHA1 Message Date
mohmdsdgandCursor 00b23ac404 feat(tahesab,colleague): push app balance to Tahesab and always wait callback
Add admin decision to write app wallet onto Tahesab even when zero, always await colleague callback regardless of the wait switch, and SMS admins on colleague reject.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 22:30:56 +03:30
mohmdsdgandCursor 3b7db1eb72 feat(tahesab): reset local success flags when remote docs were wiped
Clear tahesab_id on locally successful rows so they re-enter the send queue without touching panel customer codes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 13:43:16 +03:30
mohmdsdgandCursor c802c67e0d feat(tahesab): register remaining panel customers after document sync
After pending docs finish, the same pump writes customers without a code into Tahesab. Inbound import is server-side; the admin only polls status.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 10:09:54 +03:30
mohmdsdgandCursor ff5430eceb fix(tahesab): register unlinked customers before sending documents
File cache cannot use Cache::lock, so docs for customers without a code always failed. Register first, put the customer name on the sanad, and surface the real error.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 09:25:18 +03:30
mohmdsdgandCursor bb52e4c35a fix(tahesab): show missing docs and create local table if absent
Pending list was empty because a missing tahesab table hid unsynced orders and charges. Create the table when needed and keep customer on each row.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 21:51:21 +03:30
mohmdsdgandCursor ad12de87c7 fix(tahesab): do not 500 pending-summary when tahesab table is missing
Gholaktala has no local tahesab table; count queries now return empty pending stats instead of QueryException.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 21:00:22 +03:30
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 c27cfabd22 added some feature for accounting 2026-08-30 20:47:26 +03:30
mohmdsdg 283f17561c added some feature for accounting and enhance performance for dashboard 2026-08-30 20:18:48 +03:30
mohmdsdgandCursor e059a4709e Apply Tahesab account balances to wallets with admin overwrite control.
Add inbound mande sync on customer import plus per-customer and bulk wallet-sync endpoints so previously linked accounts can catch up.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 14:16:36 +03:30
mohmdsdg 6b5b490e2b added accounting failing handles 2026-08-27 16:16:20 +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 d360539208 fix title 2026-08-03 11:51:16 +03:30
mohmdsdg dd77e2ce81 fix some bugs from tahesab 2026-07-29 14:58:33 +03:30
mohmdsdg d81cea3d4f fix some bugs from accounting 2026-07-28 17:44:24 +03:30
mohmdsdg 01031e9e01 all customer from pargar fixing 2 2026-07-22 00:31:38 +03:30
mohmdsdg 2f48b88cf6 added pargar 4 2026-07-05 21:48:11 +03:30
mohmdsdg 8fa3df94ca work on moving customers from tahesab 5 2026-06-29 01:13:53 +03:30
mohmdsdg 8ac18c6f03 work on moving customers from tahesab ۴ 2026-06-29 01:05:47 +03:30
mohmdsdg 5fffdf1ecd work on moving customers from tahesab 3 2026-06-29 00:48:23 +03:30
mohmdsdg 369d2453a5 work on moving customers from tahesab 2 2026-06-29 00:41:42 +03:30
mohmdsdg 73ccd4060c work on moving customers from tahesab 2026-06-28 23:41:01 +03:30
mohmdsdg 7b2d052be1 added some feature for accounting and price 9 2026-06-28 21:28:44 +03:30
mohmdsdg 8cb92a38b4 added some feature for accounting and price 8 2026-06-28 21:05:04 +03:30
mohmdsdg c024091531 added some feature for accounting and price 7 2026-06-28 19:13:35 +03:30
mohmdsdg 5d8e4da07b added some feature for accounting and price 6 2026-06-28 17:33:38 +03:30
mohmdsdg 7755188e3a added some feature for accounting and price 5 2026-06-28 17:05:33 +03:30
mohmdsdg 4e1156c5b9 added some feature for accounting and price 4 2026-06-28 16:56:51 +03:30
mohmdsdg e21e97988c fixed auto add customer into tahesab 2026-06-27 22:10:29 +03:30
mohmdsdg 1247a5ca07 fix tahesab 2026-06-26 21:57:37 +03:30
mohmdsdg 1f93408c7b added tahesab options 2 2026-06-25 22:24:46 +03:30
mohmdsdg e6e1ff0cc4 added tahesab options 2026-06-25 22:20:40 +03:30
mohmdsdg 67f1b0ded0 fix charge account 2026-06-21 13:17:57 +03:30
mohmdsdg 50a726f251 sql edits 2026-06-14 11:06:00 +03:30
mohmdsdg 484f05a073 tahesab 2 2026-06-07 18:27:04 +03:30
mohmdsdg 20ed4ee3ad fix tahesab 2026-06-07 14:30:26 +03:30
mohmdsdg 497ccd7e14 added log for better response 2026-05-29 21:28:50 +03:30
mohmdsdg 847b856078 sharh added 2026-05-29 17:00:29 +03:30
mohmdsdg 0a4d1219fa added liman service 2026-05-24 13:56:33 +03:30
gholak tala 9b4b4f3245 NASER add bedehi/talab api to tahesab controller(commented) 2026-05-18 17:15:24 +00:00
gholak tala 0ce2f9854a NASER fix tahesab charge gold api from admin 2026-05-16 15:56:18 +00:00
gholak tala 3fe4625df3 NASER fix tahesab issue for buy and sale 2026-04-13 13:06:38 +00:00
gholak tala edbbca8ae4 NASER fix bank account in tahesab api 2026-04-06 09:04:56 +00:00
gholak tala e079ba0435 NASER add tahesab sanad list and fix som issues 2026-04-06 08:27:10 +00:00
gholak tala df4972eceb NASER fix price issues & close trade when tahesab is unavailable 2026-03-16 10:04:14 +00:00
gholak tala 5ec53f12e6 NASER close orders when hamkar is closed, fix tahesab issues, fix singleorder issues 2026-03-15 09:30:06 +00:00
gholak tala fe83dc661a NASER fix tahesab issues 2026-03-14 16:21:42 +00:00
gholak tala b5463e1208 NASER fix wallet in tahesab 2026-03-14 12:46:09 +00:00
n.moghbel2001 fe134310ba NASER optimize tahesabcontroller & add charge gold wallet 2026-03-14 11:08:30 +03:30
n.moghbel2001 7de42d4edc NASER optimize tahesab controller 2026-03-14 09:57:15 +03:30