Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

A simplistic example of a logic for Rebate Template. This logic creates one agreement with one line.

How to use:

  1. Place the code to a new logic under Administration > Configuration > RebateManager > Rebate Agreement Template Logics.
    IMPORTANT: Review the first 3 lines and change it according to your system:
    1. rebateTypeName – Must be the name of an existing Rebate Type, otherwise it fails.
    2. customerId – Should be an existing customer Id, but from our experience it may also work with a non-existent Id (advisable for testing purposes only).
    3. inputFieldOnRebateType – The name of the input parameter on the line item. It must be the NAME of the input (in case you have the Name different from Label of the input parameter).
  2. Make a new template record under RebateManager > Rebate Agreement Templates and assign the new logic to it.
  3. Navigate to RebateManager > Rebate Agreements and click the "Create Rebate Agreements from Template" button.


  • No labels