mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
[fix] [minor] change_grid_labels
This commit is contained in:
@@ -195,6 +195,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
|
|||||||
var company_currency = this.get_company_currency();
|
var company_currency = this.get_company_currency();
|
||||||
this.change_form_labels(company_currency);
|
this.change_form_labels(company_currency);
|
||||||
this.change_grid_labels(company_currency);
|
this.change_grid_labels(company_currency);
|
||||||
|
this.frm.refresh_fields();
|
||||||
},
|
},
|
||||||
|
|
||||||
recalculate: function() {
|
recalculate: function() {
|
||||||
|
|||||||
@@ -617,7 +617,9 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
|
|||||||
// set labels
|
// set labels
|
||||||
var $wrapper = $(this.frm.wrapper);
|
var $wrapper = $(this.frm.wrapper);
|
||||||
$.each(field_label_map, function(fname, label) {
|
$.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;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user