[fix] POS not working if user clicks on back button from form view (#10912)
This commit is contained in:
parent
ada8ba96b3
commit
d4c2d77bba
@ -20,6 +20,10 @@ frappe.pages['point-of-sale'].on_page_load = function(wrapper) {
|
||||
});
|
||||
};
|
||||
|
||||
frappe.pages['point-of-sale'].refresh = function(wrapper) {
|
||||
cur_frm = wrapper.pos.frm;
|
||||
}
|
||||
|
||||
erpnext.pos.PointOfSale = class PointOfSale {
|
||||
constructor(wrapper) {
|
||||
this.wrapper = $(wrapper).find('.layout-main-section');
|
||||
@ -478,6 +482,8 @@ class POSCart {
|
||||
}
|
||||
|
||||
update_taxes_and_totals() {
|
||||
if (!this.frm.doc.taxes) { return; }
|
||||
|
||||
const currency = this.frm.doc.currency;
|
||||
this.frm.refresh_field('taxes');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user