From af5338116338ac9eb88e9c440528cff248aa03d4 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Tue, 7 Jan 2025 11:14:42 +0530 Subject: [PATCH] fix: discount resetting on date change revert #44989 (cherry picked from commit 886281f81a2c1d39f736aea5100a61d6ddd08325) --- erpnext/public/js/controllers/transaction.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index f6d124de23d..b3389b27e84 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -974,7 +974,6 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe } transaction_date() { - this.apply_pricing_rule() if (this.frm.doc.transaction_date) { this.frm.transaction_date = this.frm.doc.transaction_date; frappe.ui.form.trigger(this.frm.doc.doctype, "currency"); @@ -983,7 +982,6 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe posting_date() { var me = this; - me.apply_pricing_rule() if (this.frm.doc.posting_date) { this.frm.posting_date = this.frm.doc.posting_date;