[minor] primary action

This commit is contained in:
Anand Doshi 2014-08-08 11:51:00 +05:30
parent 995185d02d
commit 69ccf9695c
2 changed files with 4 additions and 4 deletions

View File

@ -14,8 +14,8 @@ $.extend(cur_frm.cscript, {
this.frm.toggle_enable('year_end_date', doc.__islocal) this.frm.toggle_enable('year_end_date', doc.__islocal)
if (!doc.__islocal && (doc.name != sys_defaults.fiscal_year)) { if (!doc.__islocal && (doc.name != sys_defaults.fiscal_year)) {
this.frm.add_custom_button('<i class="icon-star"></i> ' + __("Set as Default"), this.frm.add_custom_button(__("Set as Default"),
this.frm.cscript.set_as_default); this.frm.cscript.set_as_default, "icon-star");
this.frm.set_intro(__("To set this Fiscal Year as Default, click on 'Set as Default'")); this.frm.set_intro(__("To set this Fiscal Year as Default, click on 'Set as Default'"));
} else { } else {
this.frm.set_intro(""); this.frm.set_intro("");

View File

@ -47,13 +47,13 @@ frappe.query_reports["Trial Balance"] = {
}, },
{ {
"fieldname": "with_period_closing_entry", "fieldname": "with_period_closing_entry",
"label": __("With Period Closing Entry"), "label": __("Period Closing Entry"),
"fieldtype": "Check", "fieldtype": "Check",
"default": 1 "default": 1
}, },
{ {
"fieldname": "show_zero_values", "fieldname": "show_zero_values",
"label": __("Show rows with zero values"), "label": __("Show zero values"),
"fieldtype": "Check" "fieldtype": "Check"
}, },
], ],