You can enable or disable the doInventory parameter for IBM Sales
Center order commands at the command level. By default, the doInventory parameter
is set to Y. To enable or disable the doInventory parameter:
Procedure
- Open the SyncSalesOrderBODMapping.xml file found in the WC_eardir\xml\messaging\
directory.
- To enable the doInventory parameter:
- Add a Constant element into the body of the OrderItemAddCmd
command element as follows:
<Command
CommandName="com.ibm.commerce.orderitems.commands.OrderItemAddCmd">
<Constant Field="doInventory">Y</Constant>
</Command>
- Make the same update to the Command element of the OrderItemUpdateCmd
as follows:
<Command
CommandName="com.ibm.commerce.orderitems.commands.OrderItemUpdateCmd">
<Constant Field="doInventory">Y</Constant>
</Command>
- Make the same update to the Command element of the OrderItemDisplayCmd
as follows:
<Command
CommandName="com.ibm.commerce.orderitems.commands.OrderItemDisplayCmd">
<Constant Field="doInventory">Y</Constant>
</Command>
- To disable the doInventory parameter:
- Update the <Constant Field="doInventory"> element in the
OrderItemAddCmd element by entering an "N" into the body of the element as
follows:
<Command
CommandName="com.ibm.commerce.orderitems.commands.OrderItemAddCmd">
<Constant Field="doInventory">N</Constant>
</Command>
- Make the same update to the Command element of the OrderItemUpdateCmd
as follows:
<Command
CommandName="com.ibm.commerce.orderitems.commands.OrderItemUpdateCmd">
<Constant Field="doInventory">N</Constant>
</Command>
- Make the same update to the Command element of the OrderItemDisplayCmd
as follows:
<Command
CommandName="com.ibm.commerce.orderitems.commands.OrderItemDisplayCmd">
<Constant Field="doInventory">N</Constant>
</Command>
- Restart the WebSphere Commerce instance.