...
The user clicks Recalculate or Recalculate Changes.
The system calls the quote 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.
The system sets the
dirty
flag for line items, either for all or only for the modified ones.For each "dirty" item the system will:
Call the quote item logic.
Take the logic’s element results, and store it on the line item.
The system executes the quote header logic in post-phase.
Usually the header logic calculates some summarized results and creates the result fields.
The user can see the recalculated results on the screen.