2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00
books/schemas/app/NumberSeries.json
18alantom 7023ce2171 fix: allow account creation from tax
- prevent random strings when manual naming
- set naming
2022-09-15 14:23:13 +05:30

65 lines
1.3 KiB
JSON

{
"name": "NumberSeries",
"label": "Number Series",
"naming": "manual",
"isSingle": false,
"isChild": false,
"fields": [
{
"fieldname": "name",
"label": "Prefix",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "start",
"label": "Start",
"fieldtype": "Int",
"default": 1001,
"required": true,
"minvalue": 0
},
{
"fieldname": "padZeros",
"label": "Pad Zeros",
"fieldtype": "Int",
"default": 4,
"required": true
},
{
"fieldname": "referenceType",
"label": "Reference Type",
"fieldtype": "Select",
"options": [
{
"value": "SalesInvoice",
"label": "Invoice"
},
{
"value": "PurchaseInvoice",
"label": "Bill"
},
{
"value": "Payment",
"label": "Payment"
},
{
"value": "JournalEntry",
"label": "Journal Entry"
}
],
"default": "-",
"required": true,
"readOnly": true
},
{
"fieldname": "current",
"label": "Current",
"fieldtype": "Int",
"required": true,
"readOnly": true
}
],
"quickEditFields": ["referenceType", "start", "padZeros"]
}