|
|
|
@ -19,7 +19,8 @@ def invoice_signal(instance, **kwargs): |
|
|
|
if instance.yandex_pay and instance.method == 'Y' and instance.status == 'P': |
|
|
|
if instance.yandex_pay and instance.method == 'Y' and instance.status == 'P': |
|
|
|
msg = EmailMessage( |
|
|
|
msg = EmailMessage( |
|
|
|
'Вам выставлен новый счёт', |
|
|
|
'Вам выставлен новый счёт', |
|
|
|
instance.get_comment(), |
|
|
|
"""%s для оплаты перейдите по ссылке |
|
|
|
|
|
|
|
%s/api/v1/finance/payment/%s/""" % (instance.get_comment(), settings.DOMAIN, instance.yandex_pay.id), |
|
|
|
to=[instance.yandex_pay.cps_email], |
|
|
|
to=[instance.yandex_pay.cps_email], |
|
|
|
bcc=[instance.bill.opener.email], |
|
|
|
bcc=[instance.bill.opener.email], |
|
|
|
reply_to=[instance.bill.opener.email], |
|
|
|
reply_to=[instance.bill.opener.email], |
|
|
|
|