Business scenario
Let’s consider the following business scenario:In our previously developed application, we want to add a new feature for calculating shipment commissions for sales orders. The requirements are:To calculate commissions (charges) for a sales order, we need to consider only the lines where Type = Item.For all these lines, the calculation must be done in the following way:
- If the line quantity is < 10, we need to add 1.5 $ to the charges
- If the line quantity is >= 10, we need to add 5 $ to the charges
- The charges must be added to the sales order as a new line where Type = Charge (Item)
- The new charge line must be calculated and added automatically during the release process of the sales order.
This will be our base solution (the solution that we sell to all our customers).When implementing this solution, we want that:
- The charge calculation process must be customizable
- The charge calculation process could be replaced by a custom calculation for every customer...