Skip to content

Commit

Permalink
fix: apply apply_pricing_rule date change
Browse files Browse the repository at this point in the history
(cherry picked from commit 2cbab9b)
  • Loading branch information
DHINESH00 authored and mergify[bot] committed Jan 1, 2025
1 parent 0a2cc6b commit f09acc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
}

validate() {
this.apply_pricing_rule()
this.calculate_taxes_and_totals(false);
}

Expand Down Expand Up @@ -974,6 +975,7 @@ 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 @@ -982,6 +984,7 @@ 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 f09acc7

Please sign in to comment.