CheckPaymentTCsCmd task command
The CheckPaymentTCsCmd task command checks account, spending limit and purchase order number.
Task command
com.ibm.commerce.order.commands.CheckPaymentTCsCmdImplementation class
com.ibm.commerce.order.commands.CheckPaymentTCsCmdImpl
Commands called
CheckTASpendingLimitCmd
ValidatePONumberCmd
UpdatePOSpendingCmd
Possible callers
ProcessOrderCmdImpl
Behavior
If the trading agreement contains
any purchase order terms and conditions and purchase order
number is null:
- Throw an exception
Call CheckTASpendingCmd to check the trading agreement spending limit
If purchase order number is not null:
- Call ValidatePONumberCmd to do validation on the PO number
- If buyer purchase order Id is not null:
- Call UpdatePOSpendingCmd to update the purchase order's spending