mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
Merge pull request #45122 from frappe/mergify/bp/version-14-hotfix/pr-45121
fix: discount resetting on date change (backport #45121)
This commit is contained in:
@@ -841,7 +841,6 @@ 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");
|
||||||
@@ -850,7 +849,6 @@ 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