// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
// License: GNU General Public License v3. See license.txt

wn.query_reports["Item-wise Purchase Register"] = {
	"filters": [
		{
			"fieldname":"from_date",
			"label": "From Date",
			"fieldtype": "Date",
			"default": wn.defaults.get_user_default("year_start_date"),
			"width": "80"
		},
		{
			"fieldname":"to_date",
			"label": "To Date",
			"fieldtype": "Date",
			"default": get_today()
		},
		{
			"fieldname": "item_code",
			"label": "Item",
			"fieldtype": "Link",
			"options": "Item",
		},
		{
			"fieldname":"account",
			"label": "Account",
			"fieldtype": "Link",
			"options": "Account",
			"get_query": function() {
				var company = wn.query_report.filters_by_name.company.get_value();
				return {
					"query": "accounts.utils.get_account_list", 
					"filters": {
						"is_pl_account": "No",
						"debit_or_credit": "Credit",
						"company": company,
						"master_type": "Supplier"
					}
				}
			}
		},
		{
			"fieldname":"company",
			"label": "Company",
			"fieldtype": "Link",
			"options": "Company",
			"default": wn.defaults.get_default("company")
		}
	]
}
@@ -219,16 +219,21 @@
 label%22: 
+wn._(
 %22From Da
@@ -231,24 +231,25 @@
 (%22From Date%22
+)
 ,%0A%09%09%09%22fieldt
@@ -389,16 +389,21 @@
 label%22: 
+wn._(
 %22To Date
@@ -399,24 +399,25 @@
 ._(%22To Date%22
+)
 ,%0A%09%09%09%22fieldt
@@ -506,22 +506,28 @@
 label%22: 
+wn._(
 %22Item%22
+)
 ,%0A%09%09%09%22fi
@@ -613,16 +613,21 @@
 label%22: 
+wn._(
 %22Account
@@ -623,24 +623,25 @@
 ._(%22Account%22
+)
 ,%0A%09%09%09%22fieldt
@@ -1047,16 +1047,21 @@
 label%22: 
+wn._(
 %22Company
@@ -1057,24 +1057,25 @@
 ._(%22Company%22
+)
 ,%0A%09%09%09%22fieldt

Fix translate item_wise_purchase_register.js