mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
test: revert original pcv setting
(cherry picked from commit f45a5a63a7)
This commit is contained in:
@@ -1794,6 +1794,9 @@ class TestFinancialQueryBuilder(FinancialReportTemplateTestCase):
|
|||||||
|
|
||||||
pcv = None
|
pcv = None
|
||||||
jv_2024 = None
|
jv_2024 = None
|
||||||
|
original_pcv_setting = frappe.db.get_single_value(
|
||||||
|
"Accounts Settings", "use_legacy_controller_for_pcv"
|
||||||
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Create Period Closing Voucher for 2023
|
# Create Period Closing Voucher for 2023
|
||||||
@@ -1938,6 +1941,10 @@ class TestFinancialQueryBuilder(FinancialReportTemplateTestCase):
|
|||||||
|
|
||||||
finally:
|
finally:
|
||||||
# Clean up
|
# Clean up
|
||||||
|
frappe.db.set_single_value(
|
||||||
|
"Accounts Settings", "use_legacy_controller_for_pcv", original_pcv_setting or 0
|
||||||
|
)
|
||||||
|
|
||||||
if jv_2024:
|
if jv_2024:
|
||||||
jv_2024.cancel()
|
jv_2024.cancel()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user