mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-26 10:08:30 +00:00
fix: apply apply_pricing_rule date change
(cherry picked from commit 2cbab9b875)
This commit is contained in:
@@ -813,6 +813,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
}
|
}
|
||||||
|
|
||||||
validate() {
|
validate() {
|
||||||
|
this.apply_pricing_rule()
|
||||||
this.calculate_taxes_and_totals(false);
|
this.calculate_taxes_and_totals(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -974,6 +975,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
}
|
}
|
||||||
|
|
||||||
transaction_date() {
|
transaction_date() {
|
||||||
|
this.apply_pricing_rule()
|
||||||
if (this.frm.doc.transaction_date) {
|
if (this.frm.doc.transaction_date) {
|
||||||
this.frm.transaction_date = this.frm.doc.transaction_date;
|
this.frm.transaction_date = this.frm.doc.transaction_date;
|
||||||
frappe.ui.form.trigger(this.frm.doc.doctype, "currency");
|
frappe.ui.form.trigger(this.frm.doc.doctype, "currency");
|
||||||
@@ -982,6 +984,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
|
|
||||||
posting_date() {
|
posting_date() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
me.apply_pricing_rule()
|
||||||
if (this.frm.doc.posting_date) {
|
if (this.frm.doc.posting_date) {
|
||||||
this.frm.posting_date = this.frm.doc.posting_date;
|
this.frm.posting_date = this.frm.doc.posting_date;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user