Substitute org name and balance tokens in outbound SMS so templates no longer leave {از طرف} literal.

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-14 17:12:31 +03:30
co-authored by Cursor
parent f36fddc23b
commit 717a41e94b
12 changed files with 666 additions and 200 deletions
+5 -2
View File
@@ -4884,8 +4884,11 @@ export const MESSAGE_AUTOMATION_FIELDS = [
{ token: "{نام}", label: "نام مشتری" },
{ token: "{شماره}", label: "شماره موبایل" },
{ token: "{تاریخ}", label: "تاریخ ارسال" },
{ token: "{عنوان}", label: "عنوان رکورد" },
{ token: "{شرکت}", label: "نام شرکت" },
{ token: "{عنوان}", label: "عنوان / سمت" },
{ token: "{شرکت}", label: "شرکت مشتری" },
{ token: "{از طرف}", label: "نام سازمان فرستنده" },
{ token: "{مانده ریالی}", label: "مانده مالی (ریالی)" },
{ token: "{مانده فلزی}", label: "مانده وزنی فلزات" },
] as const;
/** First-part Persian SMS limit (legacy UI estimate). Prefer countSmsParts(). */