mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 21:49:18 +00:00
@@ -2,5 +2,48 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.query_reports["Cheques and Deposits Incorrectly cleared"] = {
|
frappe.query_reports["Cheques and Deposits Incorrectly cleared"] = {
|
||||||
filters: [],
|
filters: [
|
||||||
|
{
|
||||||
|
fieldname: "company",
|
||||||
|
label: __("Company"),
|
||||||
|
fieldtype: "Link",
|
||||||
|
options: "Company",
|
||||||
|
reqd: 1,
|
||||||
|
default: frappe.defaults.get_user_default("Company"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldname: "account",
|
||||||
|
label: __("Bank Account"),
|
||||||
|
fieldtype: "Link",
|
||||||
|
options: "Account",
|
||||||
|
default: frappe.defaults.get_user_default("Company")
|
||||||
|
? locals[":Company"][frappe.defaults.get_user_default("Company")]["default_bank_account"]
|
||||||
|
: "",
|
||||||
|
reqd: 1,
|
||||||
|
get_query: function () {
|
||||||
|
var company = frappe.query_report.get_filter_value("company");
|
||||||
|
return {
|
||||||
|
query: "erpnext.controllers.queries.get_account_list",
|
||||||
|
filters: [
|
||||||
|
["Account", "account_type", "in", "Bank, Cash"],
|
||||||
|
["Account", "is_group", "=", 0],
|
||||||
|
["Account", "disabled", "=", 0],
|
||||||
|
["Account", "company", "=", company],
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldname: "report_date",
|
||||||
|
label: __("Date"),
|
||||||
|
fieldtype: "Date",
|
||||||
|
default: frappe.datetime.get_today(),
|
||||||
|
reqd: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldname: "include_pos_transactions",
|
||||||
|
label: __("Include POS Transactions"),
|
||||||
|
fieldtype: "Check",
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,9 +1,44 @@
|
|||||||
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
|
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
|
||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
# import frappe
|
import frappe
|
||||||
|
from frappe import _
|
||||||
|
|
||||||
|
|
||||||
def execute(filters=None):
|
def execute(filters=None):
|
||||||
columns, data = [], []
|
columns, data = [], []
|
||||||
return columns, data
|
return columns, data
|
||||||
|
|
||||||
|
|
||||||
|
def get_columns():
|
||||||
|
return [
|
||||||
|
{"fieldname": "posting_date", "label": _("Posting Date"), "fieldtype": "Date", "width": 90},
|
||||||
|
{
|
||||||
|
"fieldname": "payment_document",
|
||||||
|
"label": _("Payment Document Type"),
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"width": 220,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "payment_entry",
|
||||||
|
"label": _("Payment Document"),
|
||||||
|
"fieldtype": "Dynamic Link",
|
||||||
|
"options": "payment_document",
|
||||||
|
"width": 220,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "debit",
|
||||||
|
"label": _("Debit"),
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"options": "account_currency",
|
||||||
|
"width": 120,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "credit",
|
||||||
|
"label": _("Credit"),
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"options": "account_currency",
|
||||||
|
"width": 120,
|
||||||
|
},
|
||||||
|
{"fieldname": "clearance_date", "label": _("Clearance Date"), "fieldtype": "Date", "width": 110},
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user