[fix] [minor] change_grid_labels
diff --git a/public/js/transaction.js b/public/js/transaction.js
index 4a647ad..6348e5a 100644
--- a/public/js/transaction.js
+++ b/public/js/transaction.js
@@ -195,6 +195,7 @@
var company_currency = this.get_company_currency();
this.change_form_labels(company_currency);
this.change_grid_labels(company_currency);
+ this.frm.refresh_fields();
},
recalculate: function() {
diff --git a/selling/doctype/sales_common/sales_common.js b/selling/doctype/sales_common/sales_common.js
index 964a984..20d3a23 100644
--- a/selling/doctype/sales_common/sales_common.js
+++ b/selling/doctype/sales_common/sales_common.js
@@ -617,7 +617,9 @@
// set labels
var $wrapper = $(this.frm.wrapper);
$.each(field_label_map, function(fname, label) {
- $wrapper.find('[data-grid-fieldname="'+fname+'"]').text(label);
+ fname = fname.split("-");
+ var df = wn.meta.get_docfield(fname[0], fname[1], me.frm.doc.name);
+ if(df) df.label = label;
});
},