Browse Source

[IMP] send just the certificate for the eligible subscription

pull/1/head
houssine 7 years ago
parent
commit
d33d994746
  1. 6
      easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

6
easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

@ -140,9 +140,9 @@ class TaxShelterCertificate(models.Model):
def generate_certificates_report(self):
attachments = []
if self.total_amount_subscribed > 0:
if self.total_amount_resold == 0 and self.total_amount_transfered == 0:
attachments.append(self.generate_pdf_report('subscription'))
if self.total_amount_eligible > 0:
#if self.total_amount_resold == 0 and self.total_amount_transfered == 0:
attachments.append(self.generate_pdf_report('subscription'))
if self.total_amount_previously_subscribed > 0:
attachments.append(self.generate_pdf_report('shares'))
#if self.total_amount_resold > 0 or self.total_amount_transfered > 0:

Loading…
Cancel
Save