mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
[minor] POS profile mandatory, to set as default (#12307)
This commit is contained in:
committed by
Nabin Hait
parent
1f39feb12f
commit
3f784a7a49
@@ -360,6 +360,7 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
|||||||
fieldtype: 'Link',
|
fieldtype: 'Link',
|
||||||
label: __('POS Profile'),
|
label: __('POS Profile'),
|
||||||
options: 'POS Profile',
|
options: 'POS Profile',
|
||||||
|
reqd: 1,
|
||||||
get_query: () => {
|
get_query: () => {
|
||||||
return {
|
return {
|
||||||
query: 'erpnext.accounts.doctype.pos_profile.pos_profile.pos_profile_query',
|
query: 'erpnext.accounts.doctype.pos_profile.pos_profile.pos_profile_query',
|
||||||
@@ -1211,6 +1212,7 @@ class POSItems {
|
|||||||
return new Promise(res => {
|
return new Promise(res => {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "erpnext.selling.page.point_of_sale.point_of_sale.get_items",
|
method: "erpnext.selling.page.point_of_sale.point_of_sale.get_items",
|
||||||
|
freeze: true,
|
||||||
args: {
|
args: {
|
||||||
start,
|
start,
|
||||||
page_length,
|
page_length,
|
||||||
|
|||||||
Reference in New Issue
Block a user