2
0
mirror of https://github.com/frappe/books.git synced 2025-01-03 07:12:21 +00:00

feat: register schema for Modern POS ui

This commit is contained in:
AbleKSaju 2024-10-24 15:39:50 +05:30
parent a2b80a3414
commit 7da4319217
2 changed files with 19 additions and 0 deletions

View File

@ -9,6 +9,7 @@ export class POSSettings extends Doc {
inventory?: string;
cashAccount?: string;
writeOffAccount?: string;
posUI?: 'Classic' | 'Modern';
static filters: FiltersMap = {
cashAccount: () => ({

View File

@ -31,6 +31,24 @@
"create": true,
"default": "Write Off",
"section": "Default"
},
{
"fieldname": "posUI",
"label": "Pos Ui",
"fieldtype": "Select",
"options": [
{
"value": "Classic",
"label": "POS1"
},
{
"value": "Modern",
"label": "POS2"
}
],
"default": "POS1",
"required": true,
"section": "Default"
}
]
}