2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00
books/schemas/app/CouponCode.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.4 KiB
JSON
Raw Normal View History

2024-08-20 04:47:08 +00:00
{
"name": "CouponCode",
"label": "Coupon Code",
"naming": "manual",
2024-08-20 04:47:08 +00:00
"fields": [
{
"fieldname": "name",
"label": "Name",
"fieldtype": "Data",
"required": true,
"placeholder": "Coupon Name",
"section": "Default"
},
{
"fieldname": "couponCode",
"label": "Coupon Code",
"fieldtype": "Data",
"required": true
},
{
"fieldname": "isEnabled",
"label": "Is Enabled",
"fieldtype": "Check",
"default": true,
"required": true,
"section": "Validity and Usage"
},
{
"fieldname": "validFrom",
"label": "Valid From",
"fieldtype": "Date",
"required": true,
"section": "Validity and Usage"
},
{
"fieldname": "validTo",
"label": "Valid To",
"fieldtype": "Date",
"required": true,
"section": "Validity and Usage"
},
{
"fieldname": "maximumUse",
"label": "Maximum Use",
"fieldtype": "Int",
"default": 0,
"required": true,
"section": "Validity and Usage"
},
{
"fieldname": "used",
"label": "Used",
"fieldtype": "Int",
"default": 0,
"required": true,
"readOnly": true,
"section": "Validity and Usage"
}
],
"quickEditFields": [
"name",
"couponCode",
"validFrom",
"validTo",
"maximumUse",
"used"
],
"keywordFields": ["name"]
}