Skip to content

Commit

Permalink
Merge pull request frappe#177 from deepeshgarg007/lia_cancel
Browse files Browse the repository at this point in the history
fix: Loan Interest Accrual cancellation
  • Loading branch information
deepeshgarg007 authored Apr 11, 2024
2 parents 8f5dfff + cdf9447 commit 0bd233a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ def update_is_accrued(self):
def make_gl_entries(self, cancel=0, adv_adj=0):
gle_map = []

cost_center = frappe.db.get_value("Loan", self.loan, "cost_center")
cost_center, loan_product = frappe.db.get_value(
"Loan", self.loan, ["cost_center", "loan_product"]
)

account_details = frappe.db.get_value(
"Loan Product",
self.loan_product,
loan_product,
["interest_receivable_account", "suspense_interest_receivable", "suspense_interest_income"],
as_dict=1,
)
Expand Down

0 comments on commit 0bd233a

Please sign in to comment.