Reference > Shop flow URLs > Order Management subsystem URLs > Order task commands
UpdateSpendingLimitCmd task command
The UpdateSpendingLimitCmd task command checks account, spending limit and purchase order number, and updates some items if needed.
Task command
UpdateSpendingLimitCmd
Implementation class
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