[DEV] Accounts: Added total of future amount, Remaining Balance in Payable and Receivable reports.
This commit is contained in:
parent
2832731601
commit
43b0f2efe6
@ -136,6 +136,11 @@ frappe.query_reports["Accounts Payable"] = {
|
|||||||
"label": __("Tax Id"),
|
"label": __("Tax Id"),
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"hidden": 1
|
"hidden": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "show_future_payments",
|
||||||
|
"label": __("Show Future Payments"),
|
||||||
|
"fieldtype": "Check",
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -160,6 +160,8 @@ class ReceivablePayableReport(object):
|
|||||||
"range3",
|
"range3",
|
||||||
"range4",
|
"range4",
|
||||||
"range5",
|
"range5",
|
||||||
|
"future_amount",
|
||||||
|
"remaining_balance"
|
||||||
]
|
]
|
||||||
|
|
||||||
def update_voucher_balance(self, gle):
|
def update_voucher_balance(self, gle):
|
||||||
@ -563,7 +565,7 @@ class ReceivablePayableReport(object):
|
|||||||
jea.party,
|
jea.party,
|
||||||
jea.party_type,
|
jea.party_type,
|
||||||
je.posting_date as future_date,
|
je.posting_date as future_date,
|
||||||
sum({0}) as future_amount,
|
sum('{0}') as future_amount,
|
||||||
je.cheque_no as future_ref
|
je.cheque_no as future_ref
|
||||||
from
|
from
|
||||||
`tabJournal Entry` as je inner join `tabJournal Entry Account` as jea
|
`tabJournal Entry` as je inner join `tabJournal Entry Account` as jea
|
||||||
|
Loading…
x
Reference in New Issue
Block a user