Merge branch 'dev_fix_pereodic_payment' into 'dev'

багфикс затирания коммента при ошибке переодической задачи

See merge request !426
master
Вадим Шандринов 8 years ago
commit 390a7f5de4
  1. 6
      finance/tasks.py

@ -26,8 +26,8 @@ def periodic_billing():
try:
_yandex_repeat_card_payment(invoice)
except Exception as exc:
finance_logger.exception('YandexMoney repeatCardPayment Exception', invoice_id=invoice.id)
invoice.comment = 'Ошибка при попытке повторного платежа, свяжитесь с клиентской службой'
finance_logger.exception('Yandex Money repeatCardPayment Exception', invoice_id=invoice.id)
invoice.comment += 'Yandex Money: Ошибка при попытке повторного платежа, свяжитесь с клиентской службой'
invoice.save()
@ -78,4 +78,4 @@ def _check_yandex_response_status(invoice, resp_text):
processed_dt = resp_node.getAttribute('processedDT')
tech_message = resp_node.getAttribute('techMessage')
invoice.status += Invoice.BILL_STATUSES[-1][0]
invoice.comment += 'Yandex Kassa: ошибка № {}, сообщение {} от {}'.format(error, tech_message, processed_dt)
invoice.comment += 'Yandex Money: ошибка № {}, сообщение {} от {}'.format(error, tech_message, processed_dt)

Loading…
Cancel
Save