mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
chore: whitespace cleanup from codebase
This commit is contained in:
@@ -11,4 +11,4 @@ frappe.dashboards.chart_sources["Top 10 Pledged Loan Securities"] = {
|
||||
default: frappe.defaults.get_user_default("Company")
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
@@ -73,4 +73,4 @@ def get_data(chart_name = None, chart = None, no_cache = None, filters = None, f
|
||||
'chartType': 'bar',
|
||||
'values': values
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,4 +16,4 @@ def get_data():
|
||||
'items': ['Loan Repayment', 'Loan Interest Accrual', 'Loan Write Off', 'Loan Security Unpledge']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -988,4 +988,4 @@ def create_demand_loan(applicant, loan_type, loan_application, posting_date=None
|
||||
|
||||
loan.save()
|
||||
|
||||
return loan
|
||||
return loan
|
||||
|
||||
@@ -9,4 +9,4 @@ def get_data():
|
||||
'items': ['Loan', 'Loan Security Pledge']
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,5 +203,3 @@ def get_disbursal_amount(loan, on_current_security_price=0):
|
||||
disbursal_amount = loan_details.loan_amount - loan_details.disbursed_amount
|
||||
|
||||
return disbursal_amount
|
||||
|
||||
|
||||
|
||||
@@ -247,4 +247,3 @@ def get_per_day_interest(principal_amount, rate_of_interest, posting_date=None):
|
||||
posting_date = getdate()
|
||||
|
||||
return flt((principal_amount * rate_of_interest) / (days_in_year(get_datetime(posting_date).year) * 100))
|
||||
|
||||
|
||||
@@ -455,6 +455,3 @@ def calculate_amounts(against_loan, posting_date, payment_type=''):
|
||||
amounts['payable_amount'] = amounts['payable_principal_amount'] + amounts['interest_amount']
|
||||
|
||||
return amounts
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -12,4 +12,4 @@ def get_data():
|
||||
'items': ['Loan Security Pledge', 'Loan Security Unpledge']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,4 +40,4 @@ frappe.ui.form.on("Pledge", {
|
||||
qty: function(frm, cdt, cdn) {
|
||||
frm.events.calculate_amounts(frm, cdt, cdn);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -40,12 +40,3 @@ def get_loan_security_price(loan_security, valid_time=None):
|
||||
frappe.throw(_("No valid Loan Security Price found for {0}").format(frappe.bold(loan_security)))
|
||||
else:
|
||||
return loan_security_price
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -122,4 +122,3 @@ def update_pending_shortfall(shortfall):
|
||||
"shortfall_amount": 0,
|
||||
"shortfall_percentage": 0
|
||||
})
|
||||
|
||||
|
||||
@@ -12,4 +12,4 @@ def get_data():
|
||||
'items': ['Loan Security Pledge', 'Loan Security Unpledge']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,8 +147,3 @@ def get_pledged_security_qty(loan):
|
||||
current_pledges[security] -= unpledges.get(security, 0.0)
|
||||
|
||||
return current_pledges
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -21,4 +21,3 @@ class LoanType(Document):
|
||||
|
||||
if self.get('loan_account') == self.get('payment_account'):
|
||||
frappe.throw(_('Loan Account and Payment Account cannot be same'))
|
||||
|
||||
|
||||
@@ -12,4 +12,4 @@ def get_data():
|
||||
'items': ['Loan Application']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,5 +84,3 @@ class LoanWriteOff(AccountsController):
|
||||
)
|
||||
|
||||
make_gl_entries(gl_entries, cancel=cancel, merge_entries=False)
|
||||
|
||||
|
||||
|
||||
@@ -61,4 +61,3 @@ def term_loan_accrual_pending(date):
|
||||
})
|
||||
|
||||
return pending_accrual
|
||||
|
||||
|
||||
@@ -9,4 +9,4 @@ def get_data():
|
||||
'items': ['Loan Interest Accrual']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,4 +9,4 @@ def get_data():
|
||||
'items': ['Loan Security Shortfall']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,4 +40,4 @@ frappe.ui.form.on(cur_frm.doctype, {
|
||||
frm.set_value("applicant_name", null);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -136,4 +136,4 @@ def get_applicant_wise_total_loan_security_qty(filters, loan_security_details):
|
||||
total_value_map[security.applicant] += current_pledges.get((security.applicant, security.loan_security)) \
|
||||
* loan_security_details.get(security.loan_security, {}).get('latest_price', 0)
|
||||
|
||||
return current_pledges, total_value_map, applicant_type_map
|
||||
return current_pledges, total_value_map, applicant_type_map
|
||||
|
||||
@@ -182,4 +182,4 @@ def get_loan_wise_security_value(filters, current_pledges):
|
||||
loan_wise_security_value[key[0]] += \
|
||||
flt(qty * loan_security_details.get(key[1], {}).get('latest_price', 0))
|
||||
|
||||
return loan_wise_security_value
|
||||
return loan_wise_security_value
|
||||
|
||||
@@ -126,4 +126,4 @@ def get_data(filters):
|
||||
|
||||
data.append(row)
|
||||
|
||||
return data
|
||||
return data
|
||||
|
||||
@@ -79,6 +79,3 @@ def get_company_wise_loan_security_details(filters, loan_security_details):
|
||||
total_portfolio_value += flt(qty * loan_security_details.get(key[1], {}).get('latest_price', 0))
|
||||
|
||||
return security_wise_map, total_portfolio_value
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user