brotherton-erpnext/erpnext/stock/report/stock_ledger/stock_ledger.js

64 lines
1.3 KiB
JavaScript
Raw Normal View History

// Copyright (c) 2015, Frappe 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"] = {
"filters": [
{
"fieldname":"company",
2014-04-14 10:55:30 +00:00
"label": __("Company"),
"fieldtype": "Link",
"options": "Company",
"default": frappe.defaults.get_user_default("Company"),
"reqd": 1
},
{
"fieldname":"from_date",
2014-04-14 10:55:30 +00:00
"label": __("From Date"),
"fieldtype": "Date",
2014-02-14 10:17:51 +00:00
"default": frappe.datetime.add_months(frappe.datetime.get_today(), -1),
"reqd": 1
},
{
"fieldname":"to_date",
2014-04-14 10:55:30 +00:00
"label": __("To Date"),
"fieldtype": "Date",
2014-02-14 10:17:51 +00:00
"default": frappe.datetime.get_today(),
"reqd": 1
},
{
"fieldname":"warehouse",
2014-04-14 10:55:30 +00:00
"label": __("Warehouse"),
"fieldtype": "Link",
"options": "Warehouse"
},
{
"fieldname":"item_code",
2014-04-14 10:55:30 +00:00
"label": __("Item"),
"fieldtype": "Link",
"options": "Item"
},
{
"fieldname":"batch_no",
"label": __("Batch No"),
"fieldtype": "Link",
"options": "Batch"
},
{
"fieldname":"brand",
2014-04-14 10:55:30 +00:00
"label": __("Brand"),
"fieldtype": "Link",
"options": "Brand"
},
{
"fieldname":"voucher_no",
2014-04-14 10:55:30 +00:00
"label": __("Voucher #"),
"fieldtype": "Data"
}
]
}
// $(function() {
// $(wrapper).bind("show", function() {
2014-02-14 10:17:51 +00:00
// frappe.query_report.load();
// });
// });