mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
fix(pos): changing loyalty points not updating payment amounts
This commit is contained in:
@@ -1838,13 +1838,14 @@ class Payment {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
update_loyalty_points() {
|
async update_loyalty_points() {
|
||||||
if (this.dialog.get_value("redeem_loyalty_points")) {
|
const { loyalty_points, loyalty_amount } = this.frm.doc;
|
||||||
this.dialog.set_value("loyalty_points", this.frm.doc.loyalty_points);
|
await Promise.all([
|
||||||
this.dialog.set_value("loyalty_amount", this.frm.doc.loyalty_amount);
|
this.dialog.set_value("loyalty_points", loyalty_points),
|
||||||
this.update_payment_amount();
|
this.dialog.set_value("loyalty_amount", loyalty_amount)
|
||||||
this.show_paid_amount();
|
]);
|
||||||
}
|
this.update_payment_amount();
|
||||||
|
this.show_paid_amount();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user