Merge pull request #16610 from jay-parikh/hotfix

fix: (POS) Item listing issue in pos after submit for Multi Company POS Profile
This commit is contained in:
rohitwaghchaure 2019-02-18 12:43:57 +05:30 committed by GitHub
commit 1bcbe9069b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ erpnext.pos.PointOfSale = class PointOfSale {
});
frappe.ui.form.on('Sales Invoice', 'selling_price_list', (frm) => {
if(this.items) {
if(this.items && frm.doc.pos_profile) {
this.items.reset_items();
}
})