Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Rebate Record is calculated by the Rebate logic element with Calculation Context "rebateRecord". The rebate logic is executed either manually by a user (on the Rebate Record Detail screen) or by the Rebate Calculation process.

...

  • Code is in the logic elements with the calculation context "Calculation Context RebateRecord".

  • This code gets access to additional information via:

    • Binding Variablesvariables:

      • calculationBase – Holds a filter which finds the sales transactions related to this rebate record.

        • This filter will later be used by the Allocation process, but can be also used by the logic which calculates results for the RR.

        • The filter is of type DMDataSlice/DatamartContext.DataSlice.

        • The filter is pre-populated by the system automatically when you create the RR, but you can change it.

    • Methods:

      • api.currentItem() – Returns data (as map) of the currently calculated rebate record.

...

The results calculated by the logic in the context of rebate records are stored in a field called "calculationResults" which is a Map with key-value pairs.

...