Browse Source

[IMP] send attestation only if he still have share

pull/1/head
houssine 7 years ago
parent
commit
f69405d891
  1. 2
      easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

2
easy_my_coop_taxshelter_report/models/tax_shelter_declaration.py

@ -143,7 +143,7 @@ class TaxShelterCertificate(models.Model):
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:
if self.partner_id.total_value > 0:
attachments.append(self.generate_pdf_report('shares'))
#if self.total_amount_resold > 0 or self.total_amount_transfered > 0:
# TODO

Loading…
Cancel
Save