refactor: rename reactivity checkbox

This commit is contained in:
ruthra kumar
2025-09-10 09:56:40 +05:30
parent d3d03e8d83
commit 9391c8911c
4 changed files with 12 additions and 12 deletions

View File

@@ -592,7 +592,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
frappe.flags.dialog_set = false;
// Experimental: This will be removed once stability is achieved.
if (frappe.boot.sysdefaults.use_server_side_reactivity) {
if (!frappe.boot.sysdefaults.use_legacy_js_reactivity) {
var item = frappe.get_doc(cdt, cdn);
frappe.call({
doc: doc,

View File

@@ -38,7 +38,7 @@
"allow_zero_qty_in_quotation",
"allow_zero_qty_in_sales_order",
"experimental_section",
"use_server_side_reactivity"
"use_legacy_js_reactivity"
],
"fields": [
{
@@ -218,12 +218,6 @@
"fieldtype": "Section Break",
"label": "Experimental"
},
{
"default": "1",
"fieldname": "use_server_side_reactivity",
"fieldtype": "Check",
"label": "Use Server Side Reactivity"
},
{
"default": "0",
"description": "Allows users to submit Sales Orders with zero quantity. Useful when rates are fixed but the quantities are not. Eg. Rate Contracts.",
@@ -243,6 +237,12 @@
"fieldname": "fallback_to_default_price_list",
"fieldtype": "Check",
"label": "Use Prices from Default Price List as Fallback"
},
{
"default": "0",
"fieldname": "use_legacy_js_reactivity",
"fieldtype": "Check",
"label": "Use Legacy (Client side) Reactivity"
}
],
"grid_page_length": 50,
@@ -251,7 +251,7 @@
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
"modified": "2025-09-23 21:10:14.826653",
"modified": "2025-09-24 16:08:48.865885",
"modified_by": "Administrator",
"module": "Selling",
"name": "Selling Settings",

View File

@@ -44,7 +44,7 @@ class SellingSettings(Document):
selling_price_list: DF.Link | None
so_required: DF.Literal["No", "Yes"]
territory: DF.Link | None
use_server_side_reactivity: DF.Check
use_legacy_js_reactivity: DF.Check
validate_selling_price: DF.Check
# end: auto-generated types

View File

@@ -17,8 +17,8 @@ def boot_session(bootinfo):
bootinfo.sysdefaults.territory = frappe.get_single_value("Selling Settings", "territory")
bootinfo.sysdefaults.customer_group = frappe.get_single_value("Selling Settings", "customer_group")
bootinfo.sysdefaults.use_server_side_reactivity = frappe.get_single_value(
"Selling Settings", "use_server_side_reactivity"
bootinfo.sysdefaults.use_legacy_js_reactivity = cint(
frappe.get_single_value("Selling Settings", "use_legacy_js_reactivity")
)
bootinfo.sysdefaults.allow_stale = cint(frappe.get_single_value("Accounts Settings", "allow_stale"))
bootinfo.sysdefaults.over_billing_allowance = frappe.get_single_value(