fix sms
This commit is contained in:
1 parent
1dea3509a7
commit
e3a6d1f9d4
42 files changed
+33086
-15779
No files matched your search
@@ -16,6 +16,7 @@ from persiantools.jdatetime import JalaliDate
|
||||
|
||||
from ..models import (Article, Sarresid, Customer, Factor, ProductInStore,
|
||||
StoreRoom, Action)
|
||||
from ..sms.triggers import notify_payment_thanks
|
||||
from ._helpers import logger, _safe_int
|
||||
|
||||
|
||||
@@ -713,6 +714,11 @@ def passCheck(request, articl_id):
|
||||
sarresidINC.desc = desc
|
||||
sarresidINC.save()
|
||||
|
||||
# سند وصول (credit>0 و debit=0) یعنی مشتری پول داده ⇒ پیامک تشکر از پرداخت.
|
||||
notify_payment_thanks(articleHesabDari2.customer, articleHesabDari2.credit,
|
||||
article_id=articleHesabDari2.id,
|
||||
method=articleHesabDari2.nahvePardakht, created_by=user_op)
|
||||
|
||||
return HttpResponse("ok")
|
||||
#return redirect(request.META.get('HTTP_REFERER'))
|
||||
|
||||
@@ -916,6 +922,11 @@ def pardakhtNesiye(request, cs_id):
|
||||
articleHesabDariObj.user = user_op
|
||||
articleHesabDariObj.save()
|
||||
|
||||
# پرداخت نسیه (بستانکار) ⇒ پیامک تشکر از پرداخت (تخفیف مستثناست).
|
||||
notify_payment_thanks(customerObj, articleHesabDariObj.credit,
|
||||
article_id=articleHesabDariObj.id,
|
||||
method=nahvePardakht, created_by=user_op)
|
||||
|
||||
return redirect(request.META.get('HTTP_REFERER'))
|
||||
|
||||
except:
|
||||
|
||||
Reference in new issue
Block a user