Update provide_loan.py
This commit was merged in pull request #68.
This commit is contained in:
@@ -250,9 +250,6 @@ class ProvideLoanService(BaseService):
|
|||||||
"startDate": charge.created_at.isoformat(),
|
"startDate": charge.created_at.isoformat(),
|
||||||
}
|
}
|
||||||
|
|
||||||
if charge.code.upper() == "VAT":
|
|
||||||
item["loanRef"] = loan_ref
|
|
||||||
|
|
||||||
charge_schedule_items.append(item)
|
charge_schedule_items.append(item)
|
||||||
id_counter += 1
|
id_counter += 1
|
||||||
|
|
||||||
@@ -282,8 +279,7 @@ class ProvideLoanService(BaseService):
|
|||||||
"dueDate": schedule.due_date.isoformat(),
|
"dueDate": schedule.due_date.isoformat(),
|
||||||
"amountDue": round(interest_amount, 2),
|
"amountDue": round(interest_amount, 2),
|
||||||
"componentName": "INTEREST",
|
"componentName": "INTEREST",
|
||||||
"startDate": schedule.created_at.isoformat(),
|
"startDate": schedule.created_at.isoformat()
|
||||||
"loanRef": loan_ref
|
|
||||||
}
|
}
|
||||||
|
|
||||||
charge_schedule_items.append(interest)
|
charge_schedule_items.append(interest)
|
||||||
|
|||||||
Reference in New Issue
Block a user