Overview: There are various reasons that a CE rep will need to give the customer special pricing. This has been the way in Avante for years. With CE using the web as their order entry tool we must accommodate that same process here as well. Another point on this, only certain CE users are allowed to override the price.
Processing:
Add a property to the CartItem entity and CartItem Model named PriceOverrideReason.
Prices can be overridden for both stock and MOD items. However, the process after they make the change will need to be different.
- For Both Stock and MOD Items
- When they choose a reason code, change the unit price label to a unit price text box. Allow only numbers the same as qty only allows numbers. Since this is a price it will go to 2 decimal places.
- For stock items, we need to call Shoppingcartitem.Save passing in the overridden Price.
- For MOD items, we need to call ModProductitem.Create with RepriceStatus = 3