mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
fix: over order allowance setting fix
(cherry picked from commit 30011963bc)
This commit is contained in:
@@ -783,7 +783,7 @@ def get_allowance_for(
|
|||||||
if qty_or_amount == "qty" and not qty_allowance:
|
if qty_or_amount == "qty" and not qty_allowance:
|
||||||
if global_qty_allowance is None:
|
if global_qty_allowance is None:
|
||||||
global_qty_allowance = flt(
|
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
|
qty_allowance = global_qty_allowance
|
||||||
elif qty_or_amount == "amount" and not over_billing_allowance:
|
elif qty_or_amount == "amount" and not over_billing_allowance:
|
||||||
|
|||||||
Reference in New Issue
Block a user