This commit is contained in:
javad committed 2026-10-11 19:04:20 +03:30
1 parent 1dea3509a7
commit e3a6d1f9d4
42 files changed
+33086 -15779

No files matched your search

+5
View File
@@ -7,6 +7,7 @@ from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from ..models import Action, Customer
from ..sms.triggers import notify_visit_scheduled
@login_required(login_url='/panel/p_login/')
@@ -91,6 +92,10 @@ def customerNewAction(request ,c_id):
customer_obj.last_bazdid_dt = newAction.finishDateTime
customer_obj.save()
# پیامک «بازدید شما برای تاریخ … ثبت شد» فقط برای اقدام از نوع بازدید.
if newAction.actionType == 'bazdid':
notify_visit_scheduled(customer_obj, newAction, created_by=request.user)
return redirect('/panel/customer/'+str(c_id)+'/action')