mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
* feat: fetch payments and journals * refactor: use single qb query for PE and PI * feat: fetch PE along with SI * refactor: move repeating code to common controller * fix: fetch cost center for PE * feat: fetch JV with PE * fix: validate party filter for fetching payments * fix: linting issues * refactor: use qb to fetch PE JV and Inv * refactor: move fn to fetch advance taxes to utils & use qb * fix: filtering through accounting dimensions * chore: remove debugging print statements * fix: modify rows and columns for ledger view * refactor: filter accounting dimensions using qb * fix: show additional table cols from india compliance api call * chore: fix typo * test: purchase register and ledger view * fix: filter by party in opening row calculation * fix: exclude cancelled gl entries for opening balance * chore: change column format for report * fix: check gl entry status using is_cancelled * fix: running balance after sorting * fix: gst itemised registers for india compliance api call * fix: additional query cols for gst itemised registers * fix: additional query cols for sales register * fix: PE in sales register * fix: tax accounts in sales register * fix: Sales/Purchase register showing duplicate records * fix: avoid fetching advance account for party * refactor: remove unnecessary condition * fix: remove checking for advance accounts in payments --------- Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
78 lines
1.6 KiB
JavaScript
78 lines
1.6 KiB
JavaScript
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
frappe.query_reports["Sales Register"] = {
|
|
"filters": [
|
|
{
|
|
"fieldname":"from_date",
|
|
"label": __("From Date"),
|
|
"fieldtype": "Date",
|
|
"default": frappe.datetime.add_months(frappe.datetime.get_today(), -1),
|
|
"width": "80"
|
|
},
|
|
{
|
|
"fieldname":"to_date",
|
|
"label": __("To Date"),
|
|
"fieldtype": "Date",
|
|
"default": frappe.datetime.get_today()
|
|
},
|
|
{
|
|
"fieldname":"customer",
|
|
"label": __("Customer"),
|
|
"fieldtype": "Link",
|
|
"options": "Customer"
|
|
},
|
|
{
|
|
"fieldname":"company",
|
|
"label": __("Company"),
|
|
"fieldtype": "Link",
|
|
"options": "Company",
|
|
"default": frappe.defaults.get_user_default("Company")
|
|
},
|
|
{
|
|
"fieldname":"mode_of_payment",
|
|
"label": __("Mode of Payment"),
|
|
"fieldtype": "Link",
|
|
"options": "Mode of Payment"
|
|
},
|
|
{
|
|
"fieldname":"owner",
|
|
"label": __("Owner"),
|
|
"fieldtype": "Link",
|
|
"options": "User"
|
|
},
|
|
{
|
|
"fieldname":"cost_center",
|
|
"label": __("Cost Center"),
|
|
"fieldtype": "Link",
|
|
"options": "Cost Center"
|
|
},
|
|
{
|
|
"fieldname":"warehouse",
|
|
"label": __("Warehouse"),
|
|
"fieldtype": "Link",
|
|
"options": "Warehouse"
|
|
},
|
|
{
|
|
"fieldname":"brand",
|
|
"label": __("Brand"),
|
|
"fieldtype": "Link",
|
|
"options": "Brand"
|
|
},
|
|
{
|
|
"fieldname":"item_group",
|
|
"label": __("Item Group"),
|
|
"fieldtype": "Link",
|
|
"options": "Item Group"
|
|
},
|
|
{
|
|
"fieldname": "include_payments",
|
|
"label": __("Show Ledger View"),
|
|
"fieldtype": "Check",
|
|
"default": 0
|
|
}
|
|
]
|
|
}
|
|
|
|
erpnext.utils.add_dimensions('Sales Register', 7);
|