45 lines
1.1 KiB
JavaScript
Raw Normal View History

2013-11-20 12:59:58 +05:30
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
2014-02-14 15:47:51 +05:30
frappe.query_reports["Accounts Payable"] = {
"filters": [
{
"fieldname":"company",
2014-04-14 16:25:30 +05:30
"label": __("Company"),
"fieldtype": "Link",
"options": "Company",
2014-03-14 15:10:42 +05:30
"default": frappe.defaults.get_user_default("company")
},
{
"fieldname":"account",
2014-04-14 16:25:30 +05:30
"label": __("Account"),
"fieldtype": "Link",
"options": "Account",
"get_query": function() {
2014-02-14 15:47:51 +05:30
var company = frappe.query_report.filters_by_name.company.get_value();
return {
2014-05-28 12:56:28 +05:30
"query": "erpnext.controllers.queries.get_account_list",
"filters": {
"report_type": "Balance Sheet",
"company": company,
"master_type": "Supplier"
}
}
}
},
{
"fieldname":"report_date",
2014-04-14 16:25:30 +05:30
"label": __("Date"),
"fieldtype": "Date",
"default": get_today()
},
{
"fieldname":"ageing_based_on",
2014-04-14 16:25:30 +05:30
"label": __("Ageing Based On"),
"fieldtype": "Select",
"options": 'Posting Date' + NEWLINE + 'Due Date',
"default": "Posting Date"
}
]
2014-04-25 18:35:45 +05:30
}