From 01d2794968fdd0d0102d2fc8ffe8a836b21d6d78 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 6c83756a006..9f8aa84f836 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -841,7 +841,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"); @@ -850,7 +849,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;