UpdateSpendingLimitCmd task command

The UpdateSpendingLimitCmd task command checks account, spending limit and purchase order number, and updates some items if needed.

Task command

com.ibm.commerce.order.commands.UpdateSpendingLimitCmd

Implementation class

com.ibm.commerce.order.commands.UpdateSpendingLimitCmdImpl

Commands called

UpdateTASpendingCmd

ValidatePONumberCmd

UpdatePOSpendingCmd

Possible callers

ProcessOrderCmdImpl

Behavior

If the trading agreement contains any purchase order terms and conditions and the purchase order number is null an exception is thrown

Call UpdateTASpendingCmd to update the trading agreement spending limit

If Purchase order number is not null:
  • Call ValidatePONumberCmd to do validation on the PO number
  • If the buyer's purchase order Id is not null:
    • Call UpdatePOSpendingCmd to update the Purchase Order's Spending