You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The period closing voucher is considering the canceled GL entries as well.
If we cancel any transaction and do not delete it and try to post the period closing voucher then the balance of ledger is not mataching with a period closing voucher.
Steps to reproduce -
Create one Journal entry with a sales account
Cancel this journal entry (do not delete it)
Post the period closing voucher ( it is considering the sum of debit GL account - the sum of credit of GL account)
Point no 3 should not consider if the GL entry is having is_cancelled=1.
Module
accounts
Version
Currently, I am using the below git repo -
Frappe version-13
ERPNext version-13
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
There is no error but the data which is posted in the period closing voucher is not matching the general ledger of the particular account.
In General Ledger Report is showing the correct closing balances but while posting the period closing voucher it is actually calculating the amount with a SQL query in period_closing_voucher.py.
Problematic method -
def get_pl_balances(self):
"""Get balance for dimension-wise pl accounts"""
dimension_fields = ["t1.cost_center", "t1.finance_book"]
self.accounting_dimensions = get_accounting_dimensions()
fordimensionin self.accounting_dimensions:
dimension_fields.append("t1.{0}".format(dimension))
return frappe.db.sql(
""" select t1.account, t2.account_currency, {dimension_fields}, sum(t1.debit_in_account_currency) - sum(t1.credit_in_account_currency) as bal_in_account_currency, sum(t1.debit) - sum(t1.credit) as bal_in_company_currency from `tabGL Entry` t1, `tabAccount` t2 where t1.account = t2.name and t2.report_type = 'Profit and Loss' and t2.docstatus < 2 and t2.company = %s and t1.posting_date between %s and %s group by t1.account, {dimension_fields}""".format(
dimension_fields=", ".join(dimension_fields)
),
(self.company, self.get("year_start_date"), self.posting_date),
as_dict=1,
)
The text was updated successfully, but these errors were encountered:
Information about bug
The period closing voucher is considering the canceled GL entries as well.
If we cancel any transaction and do not delete it and try to post the period closing voucher then the balance of ledger is not mataching with a period closing voucher.
Steps to reproduce -
Module
accounts
Version
Currently, I am using the below git repo -
Frappe version-13
ERPNext version-13
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
The text was updated successfully, but these errors were encountered: