mirror of
https://github.com/frappe/books.git
synced 2025-03-31 23:41:32 +00:00
refactor: pos shift & pos settings schemas
This commit is contained in:
parent
e4907165bb
commit
65018bd750
@ -4,20 +4,5 @@
|
|||||||
"isSingle": true,
|
"isSingle": true,
|
||||||
"isChild": false,
|
"isChild": false,
|
||||||
"isSubmittable": true,
|
"isSubmittable": true,
|
||||||
"fields": [
|
"fields": []
|
||||||
{
|
|
||||||
"fieldname": "discountAfterTax",
|
|
||||||
"label": "Apply Discount After Tax",
|
|
||||||
"fieldtype": "Check",
|
|
||||||
"default": false,
|
|
||||||
"section": "Default"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "hideImages",
|
|
||||||
"label": "Hide Images",
|
|
||||||
"fieldtype": "Check",
|
|
||||||
"default": false,
|
|
||||||
"section": "Default"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@ -7,50 +7,32 @@
|
|||||||
"fieldname": "isShiftOpen",
|
"fieldname": "isShiftOpen",
|
||||||
"label": "Is POS Shift Open",
|
"label": "Is POS Shift Open",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"default": false,
|
"default": false
|
||||||
"section": "Defaults"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "openingDate",
|
"fieldname": "openingDate",
|
||||||
"label": "Opening Date",
|
"label": "Opening Date",
|
||||||
"fieldtype": "Datetime",
|
"fieldtype": "Datetime"
|
||||||
"section": "Defaults"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "closingDate",
|
"fieldname": "closingDate",
|
||||||
"label": "Closing Date",
|
"label": "Closing Date",
|
||||||
"fieldtype": "Datetime",
|
"fieldtype": "Datetime"
|
||||||
"section": "Defaults"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "openingCashAmount",
|
"fieldname": "openingCash",
|
||||||
"label": "Opening Cash Amount",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"section": "Defaults"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "totalOpeningAmount",
|
|
||||||
"label": "Opening Amount",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"section": "Defaults"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "openingCashInDenominations",
|
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"target": "OpeningCashInDenominations",
|
"target": "OpeningCash"
|
||||||
"section": "Defaults"
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "closingCash",
|
||||||
|
"fieldtype": "Table",
|
||||||
|
"target": "ClosingCash"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "openingAmounts",
|
"fieldname": "openingAmounts",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"target": "POSShiftOpeningAmounts",
|
"target": "OpeningAmounts"
|
||||||
"section": "Defaults"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "closingAmounts",
|
|
||||||
"fieldtype": "Table",
|
|
||||||
"target": "POSShiftClosingAmounts",
|
|
||||||
"section": "Defaults"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
"label": "Transfer"
|
"label": "Transfer"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"required": true,
|
"required": true
|
||||||
"section": "Details"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,15 @@ import base from './meta/base.json';
|
|||||||
import child from './meta/child.json';
|
import child from './meta/child.json';
|
||||||
import submittable from './meta/submittable.json';
|
import submittable from './meta/submittable.json';
|
||||||
import tree from './meta/tree.json';
|
import tree from './meta/tree.json';
|
||||||
|
import CashDenominations from './app/inventory/Point of Sale/CashDenominations.json';
|
||||||
|
import ClosingAmounts from './app/inventory/Point of Sale/ClosingAmounts.json';
|
||||||
|
import ClosingCash from './app/inventory/Point of Sale/ClosingCash.json';
|
||||||
|
import DefaultCashDenominations from './app/inventory/Point of Sale/DefaultCashDenominations.json';
|
||||||
|
import OpeningAmounts from './app/inventory/Point of Sale/OpeningAmounts.json';
|
||||||
|
import OpeningCash from './app/inventory/Point of Sale/OpeningCash.json';
|
||||||
|
import POSSettings from './app/inventory/Point of Sale/POSSettings.json';
|
||||||
|
import POSShift from './app/inventory/Point of Sale/POSShift.json';
|
||||||
|
import POSShiftAmounts from './app/inventory/Point of Sale/POSShiftAmounts.json';
|
||||||
import { Schema, SchemaStub } from './types';
|
import { Schema, SchemaStub } from './types';
|
||||||
|
|
||||||
export const coreSchemas: Schema[] = [
|
export const coreSchemas: Schema[] = [
|
||||||
@ -129,4 +138,14 @@ export const appSchemas: Schema[] | SchemaStub[] = [
|
|||||||
|
|
||||||
CustomForm as Schema,
|
CustomForm as Schema,
|
||||||
CustomField as Schema,
|
CustomField as Schema,
|
||||||
|
|
||||||
|
CashDenominations as Schema,
|
||||||
|
ClosingAmounts as Schema,
|
||||||
|
ClosingCash as Schema,
|
||||||
|
DefaultCashDenominations as Schema,
|
||||||
|
OpeningAmounts as Schema,
|
||||||
|
OpeningCash as Schema,
|
||||||
|
POSSettings as Schema,
|
||||||
|
POSShift as Schema,
|
||||||
|
POSShiftAmounts as Schema,
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user