From 6ed865f89a824a9f4a30709e3d1729429b54dd1f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Apr 2012 10:37:28 +0530 Subject: [PATCH] Fld label based on currency --- erpnext/selling/doctype/sales_common/sales_common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/selling/doctype/sales_common/sales_common.js b/erpnext/selling/doctype/sales_common/sales_common.js index 8a03341462..bd32fa37b7 100644 --- a/erpnext/selling/doctype/sales_common/sales_common.js +++ b/erpnext/selling/doctype/sales_common/sales_common.js @@ -88,8 +88,8 @@ var set_dynamic_label_par = function(doc, cdt, cdn, base_curr) { cur_frm.fields_dict['plc_conversion_rate'].label_span.innerHTML = 'Price List Currency Conversion Rate (' + doc.price_list_currency +' -> '+ base_curr + ')'; if (doc.doctype == 'Sales Invoice') { - cur_frm.fields_dict['total_advance'].label_span.innerHTML = 'Total Advance (' + base_curr + ')'; - cur_frm.fields_dict['outstanding_amount'].label_span.innerHTML = 'Outstanding Amount (' + base_curr + ')'; + si_cols = {'total_advance': 'Total Advance', 'outstanding_amount': 'Outstanding Amount', 'paid_amount': 'Paid Amount', 'write_off_amount': 'Write Off Amount'} + for (d in si_cols) cur_frm.fields_dict[d].label_span.innerHTML = si_cols[d] + ' (' + base_curr + ')'; } }