link view ticket for staff

This commit is contained in:
javad committed 2026-10-13 16:09:45 +03:30
1 parent 6b546aad76
commit 089db0afa4
13 files changed
+412 -3

No files matched your search

@@ -99,10 +99,12 @@ def _send_sms(job):
return send_payment_sms(job, provider_factory=get_sms_provider)
issued = None
if job.event_type == "UNIT_SUPERVISOR_NEW_TICKET":
from apps.tickets.short_links import append_supervisor_ticket_link
recipient = job.payload.get("recipient_mobile", "")
if not recipient:
raise ValueError("Unit supervisor mobile is not configured")
message = _render_sms(job.event_type, _sms_context(job), job.ticket.owning_unit)
message = append_supervisor_ticket_link(job.ticket, message)
return get_sms_provider().send_message(recipient, message), issued
if job.event_type == "CUSTOMER_TICKET_CREATED":
issued, url = _magic_link(job, "customer_created_ticket")