// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt frappe.query_reports["Stock Ledger"] = { "filters": [ { "fieldname":"company", "label": frappe._("Company"), "fieldtype": "Link", "options": "Company", "default": frappe.defaults.get_user_default("company"), "reqd": 1 }, { "fieldname":"from_date", "label": frappe._("From Date"), "fieldtype": "Date", "default": frappe.datetime.add_months(frappe.datetime.get_today(), -1), "reqd": 1 }, { "fieldname":"to_date", "label": frappe._("To Date"), "fieldtype": "Date", "default": frappe.datetime.get_today(), "reqd": 1 }, { "fieldname":"warehouse", "label": frappe._("Warehouse"), "fieldtype": "Link", "options": "Warehouse" }, { "fieldname":"item_code", "label": frappe._("Item"), "fieldtype": "Link", "options": "Item" }, { "fieldname":"brand", "label": frappe._("Brand"), "fieldtype": "Link", "options": "Brand" }, { "fieldname":"voucher_no", "label": frappe._("Voucher #"), "fieldtype": "Data" } ] } // $(function() { // $(wrapper).bind("show", function() { // frappe.query_report.load(); // }); // });