com.ibm.commerce.inventory.commands

Interface InventoryAdjustCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, ToolsControllerCommand
    All Known Implementing Classes:
    InventoryAdjustCmdImpl


    public interface InventoryAdjustCmd
    extends ToolsControllerCommand
    Makes an adjustment to existing inventory by calling the adjustinventory database stored procedure.

    An adjustment can be made by marking down quantities in one or more RECEIPT rows (when the adjustment is negative). Or it can be made by adding inventory to an existing RECEIPT row (when the adjustment is positive).

    This controller command requires that the store id is set in the command context.

    Parameters

    EC_XMLObject
    An input xml_string that contains all required data for adjusting an inventory.

    Example xml_string for adjusting an inventory:

    
     <?xml version="1.0" encoding="UTF-8"?>
     <XML>
     <XMLFile>inventory.InventoryAdjustmentDialog</XMLFile>
     <adjustmentComment>Adjustment comment</adjustmentComment>
     <ffmcenterId>300</ffmcenterId>
     <invAdjCodeId>600</invAdjCodeId>
     <itemspcId>400</itemspcId>
     <quantity>250</quantity> 
     <versionSpcId>400</versionSpcId>
     </XML>
    
     
    URL
    The URL to be called when the command completes successfully.

    Exceptions

    When the required fields are missing or not in the right data type, this command will throw an exception. It indicates which field is missing or bad.

    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this interface is "com.ibm.commerce.inventory.commands.InventoryAdjustCmd".
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation class name is "com.ibm.commerce.inventory.commands.InventoryAdjustCmdImpl".
        See Also:
        Constant Field Values
    • Method Detail

      • setAdjustmentComment

        void setAdjustmentComment(java.lang.String newAdjustmentComment)
        This method sets the comment on the adjustment.
        Parameters:
        newAdjustmentComment - comment
      • setFfmcenterId

        void setFfmcenterId(java.lang.String newFfmcenterId)
        This method sets the fulfillment center identifier.
        Parameters:
        newFfmcenterId - fulfillment center id
      • setInvAdjCodeId

        void setInvAdjCodeId(java.lang.String newInvAdjCodeId)
        This method sets the identifier for the adjustment type being made.
        Parameters:
        newInvAdjCodeId - adjustment type id
      • setCatEntryId

        void setCatEntryId(java.lang.String newCatEntryId)
        This method sets the item identifier.
        Parameters:
        newCatEntryId - item specified id
      • setItemspcId

        void setItemspcId(java.lang.String newItemspcId)
        This method sets the item identifier.
        Parameters:
        newItemspcId - item specified id
      • setMemberId

        void setMemberId(java.lang.String newMemberId)
        This method sets the member identifier.
        Parameters:
        newMemberId - member owner id
      • setPartNumber

        void setPartNumber(java.lang.String newPartNumber)
        This method sets the part number.
        Parameters:
        newPartNumber - part number
      • setQuantity

        void setQuantity(java.lang.String newQuantity)
        This method sets the quantity to adjust.
        Parameters:
        newQuantity - adjustment quantity
      • setVersionSpcId

        void setVersionSpcId(java.lang.String newVersionSpcId)
        This method sets the product version identifier of the item.
        Parameters:
        newVersionSpcId - product version id