brotherton-erpnext/accounts/report/accounts_receivable/accounts_receivable.js

45 lines
1.0 KiB
JavaScript
Raw Normal View History

// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
// License: GNU General Public License v3. See license.txt
wn.query_reports["Accounts Receivable"] = {
"filters": [
{
"fieldname":"company",
2013-09-30 21:06:29 +00:00
"label": wn._("Company"),
"fieldtype": "Link",
"options": "Company",
"default": wn.defaults.get_default("company")
},
{
"fieldname":"account",
2013-09-30 21:06:29 +00:00
"label": wn._("Account"),
"fieldtype": "Link",
"options": "Account",
"get_query": function() {
var company = wn.query_report.filters_by_name.company.get_value();
return {
"query": "accounts.utils.get_account_list",
"filters": {
"is_pl_account": "No",
"debit_or_credit": "Debit",
"company": company,
"master_type": "Customer"
}
}
}
},
{
"fieldname":"report_date",
2013-09-30 21:06:29 +00:00
"label": wn._("Date"),
"fieldtype": "Date",
"default": get_today()
},
{
"fieldname":"ageing_based_on",
2013-09-30 21:06:29 +00:00
"label": wn._("Ageing Based On"),
"fieldtype": "Select",
"options": 'Posting Date' + NEWLINE + 'Due Date',
"default": "Posting Date"
}
]
}