Fix translate account_tree_grid.js
This commit is contained in:
parent
a82d51b566
commit
4de55b4f6e
@ -36,39 +36,39 @@ erpnext.AccountTreeGrid = wn.views.TreeGridReport.extend({
|
|||||||
},
|
},
|
||||||
setup_columns: function() {
|
setup_columns: function() {
|
||||||
this.columns = [
|
this.columns = [
|
||||||
{id: "name", name: "Account", field: "name", width: 300, cssClass: "cell-title",
|
{id: "name", name: wn._("Account"), field: "name", width: 300, cssClass: "cell-title",
|
||||||
formatter: this.tree_formatter},
|
formatter: this.tree_formatter},
|
||||||
{id: "opening_debit", name: "Opening (Dr)", field: "opening_debit", width: 100,
|
{id: "opening_debit", name: wn._("Opening (Dr)"), field: "opening_debit", width: 100,
|
||||||
formatter: this.currency_formatter},
|
formatter: this.currency_formatter},
|
||||||
{id: "opening_credit", name: "Opening (Cr)", field: "opening_credit", width: 100,
|
{id: "opening_credit", name: wn._("Opening (Cr)"), field: "opening_credit", width: 100,
|
||||||
formatter: this.currency_formatter},
|
formatter: this.currency_formatter},
|
||||||
{id: "debit", name: "Debit", field: "debit", width: 100,
|
{id: "debit", name: wn._("Debit"), field: "debit", width: 100,
|
||||||
formatter: this.currency_formatter},
|
formatter: this.currency_formatter},
|
||||||
{id: "credit", name: "Credit", field: "credit", width: 100,
|
{id: "credit", name: wn._("Credit"), field: "credit", width: 100,
|
||||||
formatter: this.currency_formatter},
|
formatter: this.currency_formatter},
|
||||||
{id: "closing_debit", name: "Closing (Dr)", field: "closing_debit", width: 100,
|
{id: "closing_debit", name: wn._("Closing (Dr)"), field: "closing_debit", width: 100,
|
||||||
formatter: this.currency_formatter},
|
formatter: this.currency_formatter},
|
||||||
{id: "closing_credit", name: "Closing (Cr)", field: "closing_credit", width: 100,
|
{id: "closing_credit", name: wn._("Closing (Cr)"), field: "closing_credit", width: 100,
|
||||||
formatter: this.currency_formatter}
|
formatter: this.currency_formatter}
|
||||||
];
|
];
|
||||||
|
|
||||||
},
|
},
|
||||||
filters: [
|
filters: [
|
||||||
{fieldtype: "Select", label: "Company", link:"Company", default_value: "Select Company...",
|
{fieldtype: "Select", label: wn._("Company"), link:"Company", default_value: "Select Company...",
|
||||||
filter: function(val, item, opts, me) {
|
filter: function(val, item, opts, me) {
|
||||||
if (item.company == val || val == opts.default_value) {
|
if (item.company == val || val == opts.default_value) {
|
||||||
return me.apply_zero_filter(val, item, opts, me);
|
return me.apply_zero_filter(val, item, opts, me);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}},
|
}},
|
||||||
{fieldtype: "Select", label: "Fiscal Year", link:"Fiscal Year",
|
{fieldtype: "Select", label: wn._("Fiscal Year"), link:"Fiscal Year",
|
||||||
default_value: "Select Fiscal Year..."},
|
default_value: "Select Fiscal Year..."},
|
||||||
{fieldtype: "Date", label: "From Date"},
|
{fieldtype: "Date", label: wn._("From Date")},
|
||||||
{fieldtype: "Label", label: "To"},
|
{fieldtype: "Label", label: wn._("To")},
|
||||||
{fieldtype: "Date", label: "To Date"},
|
{fieldtype: "Date", label: wn._("To Date")},
|
||||||
{fieldtype: "Button", label: "Refresh", icon:"icon-refresh icon-white",
|
{fieldtype: "Button", label: wn._("Refresh"), icon:"icon-refresh icon-white",
|
||||||
cssClass:"btn-info"},
|
cssClass:"btn-info"},
|
||||||
{fieldtype: "Button", label: "Reset Filters"},
|
{fieldtype: "Button", label: wn._("Reset Filters")},
|
||||||
],
|
],
|
||||||
setup_filters: function() {
|
setup_filters: function() {
|
||||||
this._super();
|
this._super();
|
||||||
@ -193,7 +193,7 @@ erpnext.AccountTreeGrid = wn.views.TreeGridReport.extend({
|
|||||||
|
|
||||||
set_fiscal_year: function() {
|
set_fiscal_year: function() {
|
||||||
if (this.opening_date > this.closing_date) {
|
if (this.opening_date > this.closing_date) {
|
||||||
msgprint("Opening Date should be before Closing Date");
|
msgprint(wn._("Opening Date should be before Closing Date"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ erpnext.AccountTreeGrid = wn.views.TreeGridReport.extend({
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!this.fiscal_year) {
|
if (!this.fiscal_year) {
|
||||||
msgprint("Opening Date and Closing Date should be within same Fiscal Year");
|
msgprint(wn._("Opening Date and Closing Date should be within same Fiscal Year"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user