com.ibm.commerce.payment.commands
Interface UpdatePOSpendingCmd
- All Superinterfaces:
- ECCommand, TaskCommand
- All Known Implementing Classes:
- UpdatePOSpendingForLimitCheckCmdImpl
- public interface UpdatePOSpendingCmd
- extends TaskCommand
Update Purchase Order's Spending for the given order and buyerPurchaseOrder..
Parameter:
Parameter Name |
Type |
Descriptions |
order |
OrderAccessBean |
The Order Access Bean |
buyerPurchaseOrder |
BuyerPurchaseOrderAccessBean |
The BuyerPurchaseOrder Access Bean |
totalAmount |
BigDecimal |
The Total Amount to be recorded. This amount is in the Currency of the Order. |
errorViewName |
String |
Optional error view name passed in by the Caller. |
Behavior:
- The default implementation inserts a row into the LPOPURAMT Table
if the purchase was done specifying a Limited PO.
(No row is created if the PO specified is NOT a Limited PO.)
- Throws an ECApplicationException if the purchase amount
exceeds the PO spending limits specified via a PurchaseOrderTC for LimitedPO.
- If the Purchase was made using a currency that is different from the Store default currency,
the total amount will be converted to the store default currency before storing it in the
LPOPURAMT Table.
- Since this Task Command may be called more than once,
skip the insert if the row already exists.
- The Total Purchase Amount of the Limited PO is not decremented
if a Refund is issued later against the Order.
Error View Name:
- UpdatePOSpendingErrorView (This is the default Error View Name
if none is passed in by the Calling command.)
ErrorCodes:
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
- The default implementation class.
ERRTASK_NAME
public static final java.lang.String ERRTASK_NAME
- Name of the Error View for this command.
The constant value of this field is "UpdatePOSpendingBalanceErrorView".
NAME
public static final java.lang.String NAME
setBuyerPurchaseOrder
public void setBuyerPurchaseOrder(BuyerPurchaseOrderAccessBean abBPOA)
- Sets the abBPOA property of the command.
- Parameters:
abBPOA
- the BuyerPurchaseOrderAccessBean of the Buyer Purchase Order
setErrorViewName
public void setErrorViewName(java.lang.String sEVN)
- Optional error view name passed in by the Caller.
setOrder
public void setOrder(OrderAccessBean abOrder)
- Sets the order property of the command.
- Parameters:
abOrder
- the OrderAccessBean of the Order.
setTotalAmount
public void setTotalAmount(java.math.BigDecimal nTA)
- Sets the nTotalAmount property of the command.
- Parameters:
nTotalAmount
- the amount to be used for update.