-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
211 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "CollectionRulesItems", | ||
"label": "Collection Rules", | ||
"isChild": true, | ||
"fields": [ | ||
{ | ||
"fieldname": "tierName", | ||
"label": "Tier Name", | ||
"fieldtype": "Data" | ||
}, | ||
{ | ||
"fieldname": "collectionFactor", | ||
"label": "Collection Factor (=1 LP)", | ||
"fieldtype": "Float" | ||
}, | ||
{ | ||
"fieldname": "minimumTotalSpent", | ||
"label": "Minimum Total Spent", | ||
"fieldtype": "Currency" | ||
} | ||
], | ||
"tableFields": ["tierName", "collectionFactor", "minimumTotalSpent"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"name": "LoyaltyPointEntry", | ||
"label": "Loyalty Point Entry", | ||
"create": false, | ||
"naming": "random", | ||
"fields": [ | ||
{ | ||
"label": "Entry No.", | ||
"fieldname": "name", | ||
"fieldtype": "Data", | ||
"required": true, | ||
"readOnly": true, | ||
"section": "Default" | ||
}, | ||
{ | ||
"fieldname": "loyaltyProgram", | ||
"readOnly": true, | ||
"label": "Loyalty Program", | ||
"fieldtype": "Data", | ||
"required": true | ||
}, | ||
{ | ||
"fieldname": "loyaltyProgramTier", | ||
"readOnly": true, | ||
"label": "Loyalty Program Tier", | ||
"fieldtype": "Data" | ||
}, | ||
{ | ||
"fieldname": "customer", | ||
"readOnly": true, | ||
"label": "Customer", | ||
"fieldtype": "Link", | ||
"target": "Party", | ||
"required": true | ||
}, | ||
{ | ||
"fieldname": "invoice", | ||
"readOnly": true, | ||
"label": "Invoice", | ||
"fieldtype": "Link", | ||
"target": "SalesInvoice", | ||
"required": true | ||
}, | ||
{ | ||
"fieldname": "loyaltyPoints", | ||
"readOnly": true, | ||
"label": "Loyalty Points", | ||
"fieldtype": "Int" | ||
}, | ||
{ | ||
"fieldname": "purchaseAmount", | ||
"readOnly": true, | ||
"label": "Purchase Amount", | ||
"fieldtype": "Currency", | ||
"required": true | ||
}, | ||
{ | ||
"fieldname": "expiryDate", | ||
"readOnly": true, | ||
"label": "Expiry Date", | ||
"fieldtype": "Date" | ||
}, | ||
{ | ||
"fieldname": "postingDate", | ||
"readOnly": true, | ||
"label": "Posting Date", | ||
"fieldtype": "Date" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"name": "LoyaltyProgram", | ||
"label": "Loyalty Program", | ||
"naming": "manual", | ||
|
||
"fields": [ | ||
{ | ||
"fieldname": "name", | ||
"label": "Name", | ||
"fieldtype": "Data", | ||
"required": true, | ||
"placeholder": "Full 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"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters