mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
refactor: enable legacy controller by default for pcv
(cherry picked from commit fe39ce03bb)
# Conflicts:
# erpnext/accounts/doctype/accounts_settings/accounts_settings.json
# erpnext/accounts/doctype/period_closing_voucher/test_period_closing_voucher.py
This commit is contained in:
@@ -640,7 +640,7 @@
|
|||||||
"label": "Use Legacy Budget Controller"
|
"label": "Use Legacy Budget Controller"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "0",
|
"default": "1",
|
||||||
"fieldname": "use_legacy_controller_for_pcv",
|
"fieldname": "use_legacy_controller_for_pcv",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Use Legacy Controller For Period Closing Voucher"
|
"label": "Use Legacy Controller For Period Closing Voucher"
|
||||||
@@ -652,11 +652,15 @@
|
|||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"issingle": 1,
|
"issingle": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
"modified": "2025-07-18 13:56:47.192437",
|
"modified": "2025-07-18 13:56:47.192437",
|
||||||
=======
|
=======
|
||||||
"modified": "2025-10-01 15:17:47.168354",
|
"modified": "2025-10-01 15:17:47.168354",
|
||||||
>>>>>>> 4888461be2 (refactor: checkbox for pcv controller)
|
>>>>>>> 4888461be2 (refactor: checkbox for pcv controller)
|
||||||
|
=======
|
||||||
|
"modified": "2025-10-20 14:06:08.870427",
|
||||||
|
>>>>>>> fe39ce03bb (refactor: enable legacy controller by default for pcv)
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Accounts Settings",
|
"name": "Accounts Settings",
|
||||||
|
|||||||
@@ -13,7 +13,15 @@ from erpnext.accounts.doctype.sales_invoice.test_sales_invoice import create_sal
|
|||||||
from erpnext.accounts.utils import get_fiscal_year
|
from erpnext.accounts.utils import get_fiscal_year
|
||||||
|
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
class TestPeriodClosingVoucher(unittest.TestCase):
|
class TestPeriodClosingVoucher(unittest.TestCase):
|
||||||
|
=======
|
||||||
|
class TestPeriodClosingVoucher(IntegrationTestCase):
|
||||||
|
def setUp(self):
|
||||||
|
super().setUp()
|
||||||
|
frappe.db.set_single_value("Accounts Settings", "use_legacy_controller_for_pcv", 1)
|
||||||
|
|
||||||
|
>>>>>>> fe39ce03bb (refactor: enable legacy controller by default for pcv)
|
||||||
def test_closing_entry(self):
|
def test_closing_entry(self):
|
||||||
frappe.db.sql("delete from `tabGL Entry` where company='Test PCV Company'")
|
frappe.db.sql("delete from `tabGL Entry` where company='Test PCV Company'")
|
||||||
frappe.db.sql("delete from `tabPeriod Closing Voucher` where company='Test PCV Company'")
|
frappe.db.sql("delete from `tabPeriod Closing Voucher` where company='Test PCV Company'")
|
||||||
|
|||||||
@@ -423,3 +423,4 @@ erpnext.patches.v15_0.add_company_payment_gateway_account
|
|||||||
erpnext.patches.v15_0.update_uae_zero_rated_fetch
|
erpnext.patches.v15_0.update_uae_zero_rated_fetch
|
||||||
erpnext.patches.v15_0.update_fieldname_in_accounting_dimension_filter
|
erpnext.patches.v15_0.update_fieldname_in_accounting_dimension_filter
|
||||||
erpnext.patches.v15_0.set_asset_status_if_not_already_set
|
erpnext.patches.v15_0.set_asset_status_if_not_already_set
|
||||||
|
erpnext.patches.v15_0.toggle_legacy_controller_for_period_closing
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
"""
|
||||||
|
Description:
|
||||||
|
Enable Legacy controller for Period Closing Voucher
|
||||||
|
"""
|
||||||
|
frappe.db.set_single_value("Accounts Settings", "use_legacy_controller_for_pcv", 1)
|
||||||
Reference in New Issue
Block a user