From 3f784a7a493b8528ad350305d057a95c0afc79aa Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 5 Jan 2018 12:26:33 +0530 Subject: [PATCH] [minor] POS profile mandatory, to set as default (#12307) --- erpnext/selling/page/point_of_sale/point_of_sale.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.js b/erpnext/selling/page/point_of_sale/point_of_sale.js index 386e18d44a..e2fc10cba7 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.js +++ b/erpnext/selling/page/point_of_sale/point_of_sale.js @@ -360,6 +360,7 @@ erpnext.pos.PointOfSale = class PointOfSale { fieldtype: 'Link', label: __('POS Profile'), options: 'POS Profile', + reqd: 1, get_query: () => { return { query: 'erpnext.accounts.doctype.pos_profile.pos_profile.pos_profile_query', @@ -1211,6 +1212,7 @@ class POSItems { return new Promise(res => { frappe.call({ method: "erpnext.selling.page.point_of_sale.point_of_sale.get_items", + freeze: true, args: { start, page_length,