[minor] POS profile mandatory, to set as default (#12307)

This commit is contained in:
rohitwaghchaure 2018-01-05 12:26:33 +05:30 committed by Nabin Hait
parent 1f39feb12f
commit 3f784a7a49

View File

@ -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,