Browse Source

[IMP] send just the certificate for the eligible subscription

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

4
easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

@ -140,8 +140,8 @@ 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:
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'))

Loading…
Cancel
Save