mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
fix(accounts): keep pricing rule discount percentage in unsaved form (backport #60522)
This commit is contained in:
@@ -1933,6 +1933,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
||||
const existing_pricing_rule = frappe.model.get_value(child.doctype, child.name, "pricing_rules");
|
||||
|
||||
for (const [key, value] of Object.entries(child)) {
|
||||
if (key === "discount_amount" && child.discount_percentage) continue;
|
||||
|
||||
if (!["doctype", "name"].includes(key)) {
|
||||
if (key === "price_list_rate") {
|
||||
frappe.model.set_value(child.doctype, child.name, "rate", value);
|
||||
|
||||
Reference in New Issue
Block a user