[fix] POS not working if user clicks on back button from form view (#10912)

This commit is contained in:
rohitwaghchaure 2017-09-26 13:27:06 +05:30 committed by Nabin Hait
parent ada8ba96b3
commit d4c2d77bba

View File

@ -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');