The memento pattern
As the team progresses and is now focused on creating effective and efficient functionalities, Universal Call Center's management team decides to provide the sales team with a comprehensive functionality to generate quotes on the fly. The development team decided to create a Visualforce page within Salesforce to enable sales persons to generate quotes and present it to customers.
So, the team created a Visualforce page and controller to create a single page, which enables sales persons to select various products and generate quotes.
The following screenshot shows the final Visualforce page output created by developers:
All was good until it was demonstrated to the sales team. The sales team specified that in their usual sales scenarios, they often need to generate multiple quotations for customers based on negotiations and need to revert to various versions. This was identified as a must-have requirement. So, the team went back to the drawing board. The problem was to...