mirror of
https://github.com/frappe/books.git
synced 2024-11-14 17:34:04 +00:00
feat: coupon code schemas
This commit is contained in:
parent
f531cbc1e6
commit
dbde1748a2
@ -79,6 +79,13 @@
|
||||
"default": false,
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"fieldname": "enableCouponCode",
|
||||
"label": "Enable Coupon Code",
|
||||
"fieldtype": "Check",
|
||||
"default": false,
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"fieldname": "enablePriceList",
|
||||
"label": "Enable Price List",
|
||||
|
71
schemas/app/CouponCode.json
Normal file
71
schemas/app/CouponCode.json
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"name": "CouponCode",
|
||||
"label": "Coupon Code",
|
||||
"naming": "manual",
|
||||
|
||||
"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"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user