...

Logic API

  • Logic Nature: rebateAgreementHeader

    • Logic Type: Calculation/Pricing

  • Execution Types:

    • Standard - standard execution of this header logic is done 2x, the executions being called phases. They have different purpose, so you must distinguish those executions in the code by checking, which execution it is right now:

      • pre-phase - the first execution called pre-phase - to create input fields on header, folders or items, and to create/remove the items/folders

      • post-phase - and second execution is called post-phase - to calculate summary info of items and store them on header, folder or items

  • Information provided to the logic

  • Expected logic execution outcome

    • none - the results of the logic elements are not stored nor displayed anywhere (with exception when testing the logic in Studio)

...

Code sample

We do not have a rebate agreement specific sample, but you can review samples for quotes and contracts. The principles used in those samples are exactly the same as those in rebate header.

Groovy API

There are some commonly used functions for header logics: