Commit Graph
295 Commits
Author SHA1 Message Date
mohmdsdgandCursor dec36cc31e feat(products): add list and TV visibility icons in operations
Clarify tooltips for product-list vs TV board, keep the same switches in the editor, and show separate status columns.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 10:16:37 +03:30
mohmdsdgandCursor 7c95f1f9d6 feat(tahesab): show remaining-time estimate in sync progress modal
Estimate ETA from processed throughput for customer export and document sync.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 20:24:44 +03:30
mohmdsdgandCursor 11f60f205a feat(tahesab): add local status reset before resending wiped documents
Confirm and call reset-local so the pending count includes previously successful rows, then send all as usual.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 13:43:16 +03:30
mohmdsdgandCursor 62a6a91455 feat(tahesab): poll customer sync from any page and reuse the progress modal
Start outbound/inbound on the server; hydrate after refresh so the transfer modal returns without opening accounting.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 10:09:54 +03:30
mohmdsdgandCursor 6ab14313dd chore(admin): register TahesabDocSyncProgress in generated component types
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 21:00:22 +03:30
mohmdsdgandCursor ba12569b97 feat(tahesab): minimizable modal for bulk document sync progress
One-click start on customer-sync and documents tabs; poll every 10s, restore the modal after refresh if the server job is still running, and show failed counts with stop.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 20:48:14 +03:30
mohmdsdgandCursor 4d8d35c37d feat(admin): add colleague order callback settings
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 15:55:05 +03:30
mohmdsdgandCursor b7a986c4d3 fix(admin): send only edit-form fields when saving a customer
Stop cloning the table row into the PUT body so wallet and last-seen are not written back.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 11:18:59 +03:30
mohmdsdgandCursor 509d26d04b fix(admin): cap get_version and get_user waits at 10s
Keep the longer overlay window, but stop waiting 20–25s per bootstrap request.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 21:56:52 +03:30
mohmdsdgandCursor 7245812d1a fix(admin): wait longer for slow get_version instead of aborting a 200
Preferred host had a 3.5s abort while the response arrived around 7s, so DevTools showed OK and the UI still showed a connection error.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 21:53:50 +03:30
mohmdsdgandCursor 7cced9e5de feat(admin): group SMS charge settings and edit referral bonus
Keep sms_charge_* in advanced settings and show referral_bonus_amount in normal settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 21:38:27 +03:30
mohmdsdgandCursor 848752756f fix(tahesab): stop repeating mande-by-codes on the customer sync list
Watching the paged array retriggered the same POST when mande was empty.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 21:38:19 +03:30
mohmdsdgandCursor c7b1a75fbb fix(admin): add zarin_idbank labels for cash wallet documents
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 16:51:16 +03:30
mohmdsdgandCursor bfad8abd1e fix(colleague): show pending and failed partner-cover status on order tables
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 22:14:36 +03:30
mohmdsdgandCursor 6d1459ebcd fix(pricing): label montzar rows as تابلو montzar in price history
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 09:45:44 +03:30
mohmdsdgandCursor 589a517ffe Hide Zaarbox key on Montzar and tighten product pricing UI.
Hide zaarbox_price_key when price_provider is montzar, add +/- for fixed melted and manual prices, drop formula on fixed, and remove the show-in-assets switch.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 21:35:10 +03:30
mohmdsdgandCursor 67c701fc9d Update auto-generated Vue component type declarations.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 21:19:26 +03:30
mohmdsdgandCursor 1c4b2d4435 Require review before Tahesab wallet sync and harden accounting admin UX.
Single-customer and row sync preview balances with documents before overwrite/keep; bulk sync keeps confirm. Also ship Zarin wallet sync actions, field help, and get_user cache improvements.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 21:18:26 +03:30
mohmdsdgandCursor 04cc03fe25 Sync Tahesab wallet balance on import and let admins resolve conflicts.
Add customer search on the Tahesab-only list, bulk/per-customer mande sync UI, and a decision modal when app balance differs from Tahesab.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 14:16:36 +03:30
mohmdsdgandCursor 084b449177 Add customers gold credit menu with request and active tabs.
Gate the submenu on enable_gold_credit and wire settings UI for SuperAdmin and tenant credit options.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-30 00:17:03 +03:30
mohmdsdgandCursor 14d2bb603e fix(admin): apply SuperAdmin flags on بروزرسانی and fix overlay card keys
Pull live program-settings, set menu flags from the response, and key setting cards by setting key so id-null overlay rows no longer share one toggle state.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-29 22:42:30 +03:30
mohmdsdgandCursor 085c024654 fix(admin): refresh SuperAdmin flags when clicking بروزرسانی
Reload live program-settings overlay before reloading the settings list so menus like special pricing update without relying on cached flags.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-29 22:39:08 +03:30
mohmdsdgandCursor a694ae5cde Treat mesghal pasted into per-gram price as gram on admin orders.
Prevents the order preview and submit from turning a rial amount into under-weighted soot.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-29 13:50:12 +03:30
mohmdsdgandCursor 00351673f8 fix(admin): active-only colleague account code and karat placement
Show montzar colleague account field only for the connected accounting provider (also on customer sync pages), untruncate hesab-ketab menu labels, and move product karat under weight/unit.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-27 18:47:38 +03:30
mohmdsdg 827adfe756 fix accounting fails 2026-08-27 16:15:11 +03:30
mohmdsdg da5b113406 fix moshtari code 2026-08-27 14:37:39 +03:30
mohmdsdgandCursor 52057805ff feat(banners): make products hero slides addable and fix theme slots
Admins can add/remove any number of product banners, and profile/fund slots keep relative storage paths for refresh-safe previews.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 18:31:41 +03:30
mohmdsdgandCursor 464995a43e fix(banners): save relative storage paths so admin preview survives refresh
Uploads were stored as host-specific URLs and a force-reload could wipe a just-saved image, leaving a broken dark-theme preview.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 18:01:26 +03:30
mohmdsdgandCursor 3d63e2cf7f feat(admin): colleague accounting codes and reliable banner saves
Add per-provider Montzar account codes on the colleague transactions page, rename the menu label, and auto-persist banner uploads with https file URLs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-26 16:59:24 +03:30
mohmdsdgandCursor 1c26ec3eaf fix(admin): keep manual price input and stop false server-unavailable overlay
Manual mode no longer keeps formula/reference UI, and 500 messages containing "server" no longer lock the whole panel.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 20:49:53 +03:30
mohmdsdgandCursor b313b66d48 fix(trading-hours): save schedule edits immediately and match display help
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 02:29:02 +03:30
mohmdsdgandCursor 0d072ba82d feat(automations): auto-close TimePicker and show skipped send status
TimePicker closes on select without Ok button; send log shows skipped entries from cooldown/max limits.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 22:31:27 +03:30
mohmdsdgandCursor 7a2254bc2d feat(automations): use Ant TimePicker with minute precision and Jalali dates
Replace hour-only select with HH:mm picker, show last run and send logs in Jalali, and display scheduled times as HH:mm in the table.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 22:13:06 +03:30
mohmdsdgandCursor eb435fe3ab docs(automations): note automatic app name footer in SMS body help
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 21:57:20 +03:30
mohmdsdgandCursor 3838d0a56c feat(automations): add test run button and send log modal in admin
Expose run-now and sends APIs in the automations UI, show SMS hour and last run columns, and group advanced settings toolbar actions together.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 21:46:13 +03:30
mohmdsdgandCursor 71bf8dfc47 feat(settings): add SuperAdmin sync button on advanced settings
Lets deploy admins clear overlay cache and reload can_edit=0 switches like enable_automation without SSH.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 21:22:49 +03:30
mohmdsdg 91ae4ed207 feat(settings): add enamad_logo and group enamad under general brand
Expose enamad_logo in editable settings and place enamad keys in عمومی و برند.
2026-08-24 19:39:07 +03:30
mohmdsdgandCursor 67652f0cd8 feat(automations): gate menu and route behind enable_automation
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 16:15:52 +03:30
mohmdsdg 010e287c70 m 2026-08-24 12:59:34 +03:30
mohmdsdgandCursor 6bbd8704b8 setting pushed
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 09:48:27 +03:30
mohmdsdg a75c4d915d added tv params 2026-08-22 21:49:10 +03:30
mohmdsdg eb434cd606 fix title navbar 2026-08-20 16:47:00 +03:30
mohmdsdgandCursor f6efeeff3e fix(settings): show Montzar keys when price_provider is empty
Regular settings hid all montzar_* unless price_provider was already
loaded as montzar, so search only found referral_gift_buy_from_montzar.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 21:27:20 +03:30
mohmdsdgandCursor ed326a41d2 fix(settings): show code-managed keys in regular settings panel
Runtime Montzar/price keys visible when can_edit=1 from API (readonly).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 20:15:29 +03:30
mohmdsdgandCursor 6da3f84a89 fix(settings): code-managed keys in advanced panel only
Align can_edit lists with deploy SQL: runtime Montzar/price keys stay in
tenant advanced settings (read-only), not super admin catalog.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 19:55:41 +03:30
mohmdsdgandCursor 1a8001fb75 fix(price-trigger): SMS-only in admin price trigger editor
Remove email action from form and always show sms in the table column.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 19:02:46 +03:30
mohmdsdgandCursor ba4557c526 fix(admin): pricing table toTime import and swap support/config menu order
Fix ReferenceError in store price sync log columns and place پیکربندی before چت پشتیبانی in the header menu.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 14:11:27 +03:30
mohmdsdgandCursor 46c397804f feat(settings): montzar_product_id as select from partner product API
Load products from /admin/montzar/products with searchable select UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 14:02:48 +03:30
mohmdsdgandCursor 022796738d fix(product): place reference adjustment next to zero-price toggle
Reorder pricing grid so تعدیل and قیمت صفر از مرجع sit side by side
below مرجع قیمت and formula sections.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 13:59:23 +03:30
mohmdsdgandCursor db29998e40 fix(product): show formula price beside pricing fields for melted products
Formula section was only in non-melted automatic mode; now appears next to
adjustment fields for melted app/reference/fixed and all non-melted sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-19 13:57:59 +03:30