...
This calculation is mostly triggered by the Rebate Calculation process.
Rebate Record logic results mapping
The results calculated by the logic in the context of RebateRecords, are stored in a field "calculationResults", which is a Map with key-value pairs.
For easier processing, it is handy to map some of those results to the "attribute#" fields of the RR. Usually you want to keep in the "attribute#" fields only data, you’re going to export or use in the allocation process or somehow else.