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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user