2015-03-03 09:25:30 +00:00
|
|
|
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2013-11-29 13:45:26 +00:00
|
|
|
// 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",
|
2015-12-23 11:07:00 +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",
|
2018-04-12 07:55:03 +00:00
|
|
|
"options": "Item",
|
|
|
|
"get_query": function() {
|
|
|
|
return {
|
|
|
|
query: "erpnext.controllers.queries.item_query"
|
|
|
|
}
|
|
|
|
}
|
2013-11-29 13:45:26 +00:00
|
|
|
},
|
2017-08-16 06:05:04 +00:00
|
|
|
{
|
|
|
|
"fieldname":"item_group",
|
|
|
|
"label": __("Item Group"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Item Group"
|
|
|
|
},
|
2017-04-20 09:51:01 +00:00
|
|
|
{
|
|
|
|
"fieldname":"batch_no",
|
|
|
|
"label": __("Batch No"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Batch"
|
|
|
|
},
|
2013-11-29 13:45:26 +00:00
|
|
|
{
|
|
|
|
"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"
|
2018-03-21 12:22:41 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"project",
|
|
|
|
"label": __("Project"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Project"
|
2018-10-18 12:29:47 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"include_uom",
|
|
|
|
"label": __("Include UOM"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "UOM"
|
2013-11-29 13:45:26 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
// $(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
|
|
|
// });
|
|
|
|
// });
|