The CSRAgentTools.isOrderModifiable(Order
pOrder)
method determines if an order is modifiable by comparing the order’s current state to the configured values and can be extended if necessary.
An order is not modifiable when:
Any items in the order have been shipped
Any payment groups in the order are in a non-modifiable state
The order is in a non-modifiable order state
The following example displays the configurable properties in /atg/commerce/custsvc/util/
:
CSRAgentTools
#both nonModifiableOrderStates and nonModifiablePaymentGroupStates are #used to determine a non-modifiable order. #states that indicate an order cannot be modified nonModifiableOrderStates=REMOVED,\ QUOTED,\ NO_PENDING_ACTION,\ PENDING_REMOVE,\ PENDING_CUSTOMER_RETURN,\ AGENT_REJECTED nonModifiablePaymentGroupStates^=\ /atg/commerce/order/PaymentGroupManager.nonModifiablePaymentGroupStates=REMOVED,\ SETTLED