X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9716339d642d2784590d3df26aa7d8161c6c9f57..4dad587dac33c6c04d9a1a594fbbd1c58dbf2bda:/src/club/models.py diff --git a/src/club/models.py b/src/club/models.py index c5057a7ba..4f3a8f632 100644 --- a/src/club/models.py +++ b/src/club/models.py @@ -352,7 +352,7 @@ class PayUOrder(payu_models.Order): ) @classmethod - def send_receipt(cls, email, year): + def send_receipt(cls, email, year, resend=False): Contact = apps.get_model('messaging', 'Contact') Funding = apps.get_model('funding', 'Funding') BillingAgreement = apps.get_model('paypal', 'BillingAgreement') @@ -406,6 +406,7 @@ class PayUOrder(payu_models.Order): "total": sum(x['amount'] for x in payments), "payments": payments, "optout": optout, + "resend": resend, } temp = tempfile.NamedTemporaryFile(prefix='receipt-', suffix='.pdf', delete=False) temp.close()