2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00
books/schemas/app/LoyaltyProgram.json
2024-09-11 12:36:21 +05:30

73 lines
1.4 KiB
JSON

{
"name": "LoyaltyProgram",
"label": "Loyalty Program",
"naming": "manual",
"fields": [
{
"fieldname": "name",
"label": "Name",
"fieldtype": "Data",
"required": true,
"placeholder": "Name",
"section": "Default"
},
{
"fieldname": "fromDate",
"label": "From Date",
"fieldtype": "Date",
"required": true
},
{
"fieldname": "toDate",
"label": "To Date",
"fieldtype": "Date",
"required": true
},
{
"fieldname": "isEnabled",
"label": "Is Enabled",
"fieldtype": "Check",
"default": true,
"required": true
},
{
"fieldname": "collectionRules",
"label": "Collection Rules",
"fieldtype": "Table",
"target": "CollectionRulesItems",
"required": false
},
{
"fieldname": "conversionFactor",
"label": "Conversion Factor",
"fieldtype": "Float",
"default": 1,
"required": true
},
{
"fieldname": "expiryDuration",
"label": "Expiry Duration",
"fieldtype": "Int",
"default": 1,
"required": true
},
{
"fieldname": "expenseAccount",
"label": "Expense Account",
"fieldtype": "Link",
"target": "Account",
"required": true
}
],
"quickEditFields": [
"name",
"fromDate",
"toDate",
"conversionFactor",
"expenseAccount",
"expiryDuration"
],
"keywordFields": ["name"]
}