fixes #1581 and added icons to grid reports

This commit is contained in:
Rushabh Mehta
2014-05-27 15:22:04 +05:30
parent d82e85d099
commit f944e819e9
11 changed files with 17 additions and 11 deletions

View File

@@ -60,7 +60,7 @@ erpnext.StockAgeing = erpnext.StockGridReport.extend({
options: ["Average Age", "Earliest", "Latest"]},
{fieldtype:"Date", label: __("To Date")},
{fieldtype:"Button", label: __("Refresh"), icon:"icon-refresh icon-white"},
{fieldtype:"Button", label: __("Reset Filters")}
{fieldtype:"Button", label: __("Reset Filters"), icon: "icon-filter"}
],
setup_filters: function() {
var me = this;

View File

@@ -71,7 +71,7 @@ erpnext.StockBalance = erpnext.StockAnalytics.extend({
{fieldtype:"Label", label: __("To")},
{fieldtype:"Date", label: __("To Date")},
{fieldtype:"Button", label: __("Refresh"), icon:"icon-refresh icon-white"},
{fieldtype:"Button", label: __("Reset Filters")}
{fieldtype:"Button", label: __("Reset Filters"), icon: "icon-filter"}
],
setup_plot_check: function() {

View File

@@ -85,7 +85,7 @@ erpnext.StockLedger = erpnext.StockGridReport.extend({
return dateutil.str_to_obj(val) >= dateutil.str_to_obj(item.posting_date);
}},
{fieldtype:"Button", label: __("Refresh"), icon:"icon-refresh icon-white"},
{fieldtype:"Button", label: __("Reset Filters")}
{fieldtype:"Button", label: __("Reset Filters"), icon: "icon-filter"}
],
setup_filters: function() {

View File

@@ -99,7 +99,7 @@ erpnext.StockLevel = erpnext.StockGridReport.extend({
return val == opts.default_value || item.brand == val;
}},
{fieldtype:"Button", label: __("Refresh"), icon:"icon-refresh icon-white"},
{fieldtype:"Button", label: __("Reset Filters")}
{fieldtype:"Button", label: __("Reset Filters"), icon: "icon-filter"}
],
setup_filters: function() {