Skip to content

Commit

Permalink
Update contract_group.py
Browse files Browse the repository at this point in the history
indentation issue
  • Loading branch information
davidwul authored Apr 22, 2022
1 parent 6408161 commit 3c6e0ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions report_compassion/models/contract_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ def get_company_qrr_account(self):
def get_amount(self, start, stop, sponsorships):
self.ensure_one()
amount = sum(sponsorships.mapped("total_amount"))
months = (int(stop.split("-")[0]) - int(start.split("-")[0]))*12+
int(stop.split("-")[1]) - int(start.split("-")[1]) + 1
months = (int(stop.split("-")[0]) - int(start.split("-")[0]))*12 + int(stop.split("-")[1]) - int(start.split("-")[1]) + 1
payment_mode = self.with_context(lang="en_US").payment_mode_id
if "Permanent" in payment_mode.name:
months = self.advance_billing_months
Expand Down

0 comments on commit 3c6e0ca

Please sign in to comment.