chore: whitespace cleanup from codebase

This commit is contained in:
Ankush Menat
2021-08-19 14:33:03 +05:30
parent e536f6d13f
commit 9bb69e711a
1218 changed files with 1391 additions and 1643 deletions

View File

@@ -11,4 +11,4 @@ frappe.dashboards.chart_sources["Top 10 Pledged Loan Securities"] = {
default: frappe.defaults.get_user_default("Company")
}
]
};
};

View File

@@ -73,4 +73,4 @@ def get_data(chart_name = None, chart = None, no_cache = None, filters = None, f
'chartType': 'bar',
'values': values
}]
}
}

View File

@@ -16,4 +16,4 @@ def get_data():
'items': ['Loan Repayment', 'Loan Interest Accrual', 'Loan Write Off', 'Loan Security Unpledge']
}
]
}
}

View File

@@ -988,4 +988,4 @@ def create_demand_loan(applicant, loan_type, loan_application, posting_date=None
loan.save()
return loan
return loan

View File

@@ -9,4 +9,4 @@ def get_data():
'items': ['Loan', 'Loan Security Pledge']
},
],
}
}

View File

@@ -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

View File

@@ -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))

View File

@@ -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

View File

@@ -12,4 +12,4 @@ def get_data():
'items': ['Loan Security Pledge', 'Loan Security Unpledge']
}
]
}
}

View File

@@ -40,4 +40,4 @@ frappe.ui.form.on("Pledge", {
qty: function(frm, cdt, cdn) {
frm.events.calculate_amounts(frm, cdt, cdn);
},
});
});

View File

@@ -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

View File

@@ -122,4 +122,3 @@ def update_pending_shortfall(shortfall):
"shortfall_amount": 0,
"shortfall_percentage": 0
})

View File

@@ -12,4 +12,4 @@ def get_data():
'items': ['Loan Security Pledge', 'Loan Security Unpledge']
}
]
}
}

View File

@@ -147,8 +147,3 @@ def get_pledged_security_qty(loan):
current_pledges[security] -= unpledges.get(security, 0.0)
return current_pledges

View File

@@ -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'))

View File

@@ -12,4 +12,4 @@ def get_data():
'items': ['Loan Application']
}
]
}
}

View File

@@ -84,5 +84,3 @@ class LoanWriteOff(AccountsController):
)
make_gl_entries(gl_entries, cancel=cancel, merge_entries=False)

View File

@@ -61,4 +61,3 @@ def term_loan_accrual_pending(date):
})
return pending_accrual

View File

@@ -9,4 +9,4 @@ def get_data():
'items': ['Loan Interest Accrual']
}
]
}
}

View File

@@ -9,4 +9,4 @@ def get_data():
'items': ['Loan Security Shortfall']
}
]
}
}

View File

@@ -40,4 +40,4 @@ frappe.ui.form.on(cur_frm.doctype, {
frm.set_value("applicant_name", null);
}
}
});
});

View File

@@ -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

View File

@@ -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

View File

@@ -126,4 +126,4 @@ def get_data(filters):
data.append(row)
return data
return data

View File

@@ -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