From 41b2de35a9ef8dd1b8357bac0a83631bd04e7378 Mon Sep 17 00:00:00 2001 From: nishkagosalia Date: Fri, 29 May 2026 12:09:19 +0530 Subject: [PATCH] fix: over order allowance setting fix (cherry picked from commit 30011963bc428ab63f0301eaa58fdf0cf7735512) --- erpnext/controllers/status_updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py index e4a7e0d3b05..06cc57d6287 100644 --- a/erpnext/controllers/status_updater.py +++ b/erpnext/controllers/status_updater.py @@ -783,7 +783,7 @@ def get_allowance_for( if qty_or_amount == "qty" and not qty_allowance: if global_qty_allowance is None: global_qty_allowance = flt( - frappe.get_cached_value(global_qty_allowance_doctype, None, global_qty_allowance_field) + frappe.get_single_value(global_qty_allowance_doctype, global_qty_allowance_field) ) qty_allowance = global_qty_allowance elif qty_or_amount == "amount" and not over_billing_allowance: