Skip to content

Commit

Permalink
Merge pull request frappe#45121 from ruthra-kumar/revert_44989
Browse files Browse the repository at this point in the history
fix: discount resetting on date change
  • Loading branch information
ruthra-kumar authored Jan 7, 2025
2 parents 9eede90 + 886281f commit 3bc74f2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,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");
Expand All @@ -1007,7 +1006,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;

Expand Down

0 comments on commit 3bc74f2

Please sign in to comment.