2013-11-29 13:45:26 +00:00
|
|
|
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2014-02-14 10:17:51 +00:00
|
|
|
frappe.query_reports["Stock Ledger"] = {
|
2013-11-29 13:45:26 +00:00
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"fieldname":"company",
|
2014-04-14 10:55:30 +00:00
|
|
|
"label": __("Company"),
|
2013-11-29 13:45:26 +00:00
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Company",
|
2014-02-14 10:17:51 +00:00
|
|
|
"default": frappe.defaults.get_user_default("company"),
|
2013-11-29 13:45:26 +00:00
|
|
|
"reqd": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"from_date",
|
2014-04-14 10:55:30 +00:00
|
|
|
"label": __("From Date"),
|
2013-11-29 13:45:26 +00:00
|
|
|
"fieldtype": "Date",
|
2014-02-14 10:17:51 +00:00
|
|
|
"default": frappe.datetime.add_months(frappe.datetime.get_today(), -1),
|
2013-11-29 13:45:26 +00:00
|
|
|
"reqd": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"to_date",
|
2014-04-14 10:55:30 +00:00
|
|
|
"label": __("To Date"),
|
2013-11-29 13:45:26 +00:00
|
|
|
"fieldtype": "Date",
|
2014-02-14 10:17:51 +00:00
|
|
|
"default": frappe.datetime.get_today(),
|
2013-11-29 13:45:26 +00:00
|
|
|
"reqd": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"warehouse",
|
2014-04-14 10:55:30 +00:00
|
|
|
"label": __("Warehouse"),
|
2013-11-29 13:45:26 +00:00
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Warehouse"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"item_code",
|
2014-04-14 10:55:30 +00:00
|
|
|
"label": __("Item"),
|
2013-11-29 13:45:26 +00:00
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Item"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"brand",
|
2014-04-14 10:55:30 +00:00
|
|
|
"label": __("Brand"),
|
2013-11-29 13:45:26 +00:00
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Brand"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"voucher_no",
|
2014-04-14 10:55:30 +00:00
|
|
|
"label": __("Voucher #"),
|
2013-11-29 13:45:26 +00:00
|
|
|
"fieldtype": "Data"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
// $(function() {
|
|
|
|
// $(wrapper).bind("show", function() {
|
2014-02-14 10:17:51 +00:00
|
|
|
// frappe.query_report.load();
|
2013-11-29 13:45:26 +00:00
|
|
|
// });
|
|
|
|
// });
|