Versions Compared

Key

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

...

  1. The user clicks Recalculate or Recalculate Changes.

  2. The system calls the Rebate header logic in pre-phase.

    • Usually the header logic creates input fields on the header, but it can also change the structure of the document.

  3. The system sets the dirty flag for line items, either for all or only for the modified ones.

  4. For each "dirty" item the system will:

    1. Call the Rebate calculation (item) logic (only elements from the group agreement).

      1. The logic calculates the results for the Rebate Line Item.

      2. The logic creates Rebate Records.

      3. The logic assigns the Rebate Records to Rebate Record Groups.

    2. Take the logic’s element results, and store them on the line item.

  5. The system executes the header logic in post-phase.

    • Usually the header logic calculates some summarized results and creates the result fields.

  6. The user can see the recalculated results on the detail screen.