Enabling and disabling the doInventory parameter for order commands

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

  1. Open the SyncSalesOrderBODMapping.xml file found in the WC_eardir\xml\messaging\ directory.
  2. To enable the doInventory parameter:
    1. 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>
      
    2. 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>
      
    3. 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>
      
  3. To disable the doInventory parameter:
    1. 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>
      
    2. 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>
      
    3. 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>
      
  4. Restart the WebSphere Commerce instance.