fix: sort by ascending to get the first period closing voucher (backport #44029) (#44035)

fix: sort by ascending to get the first period closing voucher (#44029)

(cherry picked from commit 42dcdcde1a)

Co-authored-by: Venkatesh <47534423+venkat102@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2024-11-08 12:34:47 +05:30
committed by GitHub
parent 5958d0c257
commit 56f25ae065
2 changed files with 2 additions and 2 deletions

View File

@@ -417,7 +417,7 @@ class PeriodClosingVoucher(AccountsController):
"Period Closing Voucher",
{"company": self.company, "docstatus": 1},
"name",
order_by="period_end_date",
order_by="period_end_date asc",
)
if not first_pcv or first_pcv == self.name:

View File

@@ -315,7 +315,7 @@ erpnext.patches.v15_0.update_asset_value_for_manual_depr_entries
erpnext.patches.v15_0.update_gpa_and_ndb_for_assdeprsch
erpnext.patches.v14_0.create_accounting_dimensions_for_closing_balance
erpnext.patches.v14_0.set_period_start_end_date_in_pcv
erpnext.patches.v14_0.update_closing_balances #29-10-2024
erpnext.patches.v14_0.update_closing_balances #08-11-2024
execute:frappe.db.set_single_value("Accounts Settings", "merge_similar_account_heads", 0)
erpnext.patches.v14_0.update_reference_type_in_journal_entry_accounts
erpnext.patches.v14_0.update_subscription_details