...
Info |
---|
Since version 12.0 |
This object provides ability to make operations on group many Rebate Records together and then calculate aggregations overview for them and create a workflow for the group and then approve all the records in the group at once. Those operations are:
submit
approve/deny
calculate
Fields
.
New Rebate Record Group is created in a rebate line logic.
Rebate Records are assigned to the Rebate Record Groups also in the rebate line logic. If it’s not assigned, it will not belong to any group.
The Rebate Record Group can:
Be calculated, to provides an aggregated summary for the associated Rebate Records.
Have approval workflow and be approved.
The Rebate Record Groups are presented to the user on page . When the user clicks on object’s ID in the list, the UI will display a detail page. On this page, the user can view both the calculation results and the content of the object’s fields. They can also perform the operations like Calculate and View Workflow.
Fields
rebateRecordGroupPrefix
, otherwise it will be "RRG-".Code Sample
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
rebateRecords.add("rr123", ["startDate": "2021-09-01", "endDate":"2021-09-29", "attribute1": 30, "attribute2":60])
rebateRecords.setGroup("rr123", "REBATE_RECORD_GROUP_XYZ") |