Commerce Service Center defines two PricingModelHolders
for pricing orders. Commerce Service Center decides which one to use based on the state of the order and each holder is initialized with promotions differently.
atg/commerce/custsvc/pricing/CustomerPricingModels
– this holder is used when pricing incomplete orders. It is initialized with the active customer’s current promotionsatg/commerce/custsvc/pricing/SubmittedOrderPricingModels
– this holder is used when pricing submitted orders. It is initialized with the order’s applied promotions
Incomplete Orders or Schedule Order Templates
Commerce Service Center uses the active customer’s current promotions when pricing incomplete (e.g. orders not submitted) orders.
Submitted Orders
For orders that have already been submitted to fulfillment, Commerce Service Center uses the promotions that were originally applied to the order when it was submitted.
Note that this is not the same as the promotions that were available at the time the order was submitted. It only includes the promotions that were applied to the order when it was submitted. For example, if a buy-two-get-one-free promotion was available when the order was submitted but only one was purchased and therefore not applied to the order, that promotion will not be in the SubmittedOrderPricingModels
when the order is modified after submission to add the second item.