added __() for options that need label.
This commit is contained in:
parent
1c440b3b31
commit
e3b63f2d9c
@ -19,14 +19,24 @@ var get_filters = function(){
|
||||
"fieldname":"based_on",
|
||||
"label": __("Based On"),
|
||||
"fieldtype": "Select",
|
||||
"options": ["Item", "Item Group", "Supplier", "Supplier Type", "Project"].join("\n"),
|
||||
"options": [
|
||||
{ "value": "Item", "label": __("Item") },
|
||||
{ "value": "Item Group", "label": __("Item Group") },
|
||||
{ "value": "Supplier", "label": __("Supplier") },
|
||||
{ "value": "Supplier Type", "label": __("Supplier Type") },
|
||||
{ "value": "Supplier Type", "label": __("Project") }
|
||||
],
|
||||
"default": "Item"
|
||||
},
|
||||
{
|
||||
"fieldname":"group_by",
|
||||
"label": __("Group By"),
|
||||
"fieldtype": "Select",
|
||||
"options": ["", "Item", "Supplier"].join("\n"),
|
||||
"options": [
|
||||
{ "value": "", "label": "" },
|
||||
{ "value": "Item", "label": __("Item") },
|
||||
{ "value": "Supplier", "label": __("Supplier") }
|
||||
],
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
|
@ -7,21 +7,37 @@ var get_filters = function(){
|
||||
"fieldname":"period",
|
||||
"label": __("Period"),
|
||||
"fieldtype": "Select",
|
||||
"options": ["Monthly", "Quarterly", "Half-Yearly", "Yearly"].join("\n"),
|
||||
"options": [
|
||||
{ "value": "Monthly", "label": __("Monthly") },
|
||||
{ "value": "Quarterly", "label": __("Quarterly") },
|
||||
{ "value": "Half-Yearly", "label": __("Half-Yearly") },
|
||||
{ "value": "Yearly", "label": __("Yearly") }
|
||||
],
|
||||
"default": "Monthly"
|
||||
},
|
||||
{
|
||||
"fieldname":"based_on",
|
||||
"label": __("Based On"),
|
||||
"fieldtype": "Select",
|
||||
"options": ["Item", "Item Group", "Customer", "Customer Group", "Territory", "Project"].join("\n"),
|
||||
"options": [
|
||||
{ "value": "Item", "label": __("Item") },
|
||||
{ "value": "Item Group", "label": __("Item Group") },
|
||||
{ "value": "Customer", "label": __("Customer") },
|
||||
{ "value": "Customer Group", "label": __("Customer Group") },
|
||||
{ "value": "Territory", "label": __("Territory") },
|
||||
{ "value": "Supplier Type", "label": __("Project") }
|
||||
],
|
||||
"default": "Item"
|
||||
},
|
||||
{
|
||||
"fieldname":"group_by",
|
||||
"label": __("Group By"),
|
||||
"fieldtype": "Select",
|
||||
"options": ["", "Item", "Customer"].join("\n"),
|
||||
"options": [
|
||||
{ "value": "", "label": "" },
|
||||
{ "value": "Item", "label": __("Item") },
|
||||
{ "value": "Customer", "label": __("Customer") }
|
||||
],
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user