fix: Codacy issues and added test case

This commit is contained in:
deepeshgarg007
2019-01-01 20:28:49 +05:30
parent 78ad6c4cb7
commit 8300f5ede7
2 changed files with 9 additions and 1 deletions

View File

@@ -113,7 +113,7 @@ $.extend(erpnext.utils, {
[format_currency(company_wise_info[0].billing_this_year, company_wise_info[0].currency)]), 'blue');
frm.dashboard.add_indicator(__('Total Unpaid: {0}',
[format_currency(company_wise_info[0].total_unpaid, company_wise_info[0].currency)]),
company_wise_info[0].total_unpaid ? 'orange' : 'green');
company_wise_info[0].total_unpaid ? 'orange' : 'green');
if(company_wise_info[0].loyalty_points) {
frm.dashboard.add_indicator(__('Loyalty Points: {0}',