mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
Fix translate stock_ageing.js
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
wn.pages['stock-ageing'].onload = function(wrapper) {
|
wn.pages['stock-ageing'].onload = function(wrapper) {
|
||||||
wn.ui.make_app_page({
|
wn.ui.make_app_page({
|
||||||
parent: wrapper,
|
parent: wrapper,
|
||||||
title: 'Stock Ageing',
|
title: wn._('Stock Ageing'),
|
||||||
single_column: true
|
single_column: true
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ wn.require("app/js/stock_grid_report.js");
|
|||||||
erpnext.StockAgeing = erpnext.StockGridReport.extend({
|
erpnext.StockAgeing = erpnext.StockGridReport.extend({
|
||||||
init: function(wrapper) {
|
init: function(wrapper) {
|
||||||
this._super({
|
this._super({
|
||||||
title: "Stock Ageing",
|
title: wn._("Stock Ageing"),
|
||||||
page: wrapper,
|
page: wrapper,
|
||||||
parent: $(wrapper).find('.layout-main'),
|
parent: $(wrapper).find('.layout-main'),
|
||||||
appframe: wrapper.appframe,
|
appframe: wrapper.appframe,
|
||||||
@@ -50,17 +50,17 @@ erpnext.StockAgeing = erpnext.StockGridReport.extend({
|
|||||||
];
|
];
|
||||||
},
|
},
|
||||||
filters: [
|
filters: [
|
||||||
{fieldtype:"Select", label: "Warehouse", link:"Warehouse",
|
{fieldtype:"Select", label: wn._("Warehouse"), link:"Warehouse",
|
||||||
default_value: "Select Warehouse..."},
|
default_value: "Select Warehouse..."},
|
||||||
{fieldtype:"Select", label: "Brand", link:"Brand",
|
{fieldtype:"Select", label: wn._("Brand"), link:"Brand",
|
||||||
default_value: "Select Brand...", filter: function(val, item, opts) {
|
default_value: "Select Brand...", filter: function(val, item, opts) {
|
||||||
return val == opts.default_value || item.brand == val;
|
return val == opts.default_value || item.brand == val;
|
||||||
}, link_formatter: {filter_input: "brand"}},
|
}, link_formatter: {filter_input: "brand"}},
|
||||||
{fieldtype:"Select", label: "Plot By",
|
{fieldtype:"Select", label: wn._("Plot By"),
|
||||||
options: ["Average Age", "Earliest", "Latest"]},
|
options: ["Average Age", "Earliest", "Latest"]},
|
||||||
{fieldtype:"Date", label: "To Date"},
|
{fieldtype:"Date", label: wn._("To Date")},
|
||||||
{fieldtype:"Button", label: "Refresh", icon:"icon-refresh icon-white", cssClass:"btn-info"},
|
{fieldtype:"Button", label: wn._("Refresh"), icon:"icon-refresh icon-white", cssClass:"btn-info"},
|
||||||
{fieldtype:"Button", label: "Reset Filters"}
|
{fieldtype:"Button", label: wn._("Reset Filters")}
|
||||||
],
|
],
|
||||||
setup_filters: function() {
|
setup_filters: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user