public interface ValidatePONumberCmd extends TaskCommand
ValidatePONumberCmdImpl
.
Parameter Name | Type | Descriptions |
order | OrderAccessBean | The OrderAccessBean |
account | AccountAccessBean | The AccountAccessBean representing the common account object of all the Trading Agreements specified by the OrderItems of the Order. |
buyerPONumber | String | The Buyer Purchase Order Number |
errorViewName | String | Optional error view name passed in by the Caller. |
createFlag | boolean | Flag to indicate if the command may create BuyerPurchaseOrder object as a by-product of the validation. By default, this flag is set to true. |
PaymentConstants.ERR_CODE_INVALID_PO_INDIVIDUAL_PO_NOT_ALLOWED
(1971) - Invalid PONumber. (Specified PONumber is not a predefined PO and Account does not specify that Individual PO is allowed.)
PaymentConstants.ERR_CODE_INVALID_PO_INDIVIDUAL_PO_NOT_UNIQUE
(1972) - Invalid PONumber. (Specified PONumber is not a predefined PO. And the Account requires Individual PO to be unique but this PONumber is already in use within the Account.)
PaymentConstants.ERR_CODE_INVALID_PO_PO_NOT_ACTIVE
(1973) - Invalid PONumber. (Specified PONumber is a predefined PO but the PO is not active.)
ValidatePONumberCmdImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default implementation of this command.
|
static java.lang.String |
ERRTASK_NAME
The name of the default error view for this command.
|
static java.lang.String |
NAME
The full name of this command.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getBuyerPOId()
This method returns the internal ID of the BuyerPO record if the specified buyer purchase order number is valid.
|
java.lang.Integer |
getBuyerPOType()
This method returns the Buyer Purchase Order type referenced by the specified Buyer Purchase Order number.
|
void |
setAccount(AccountAccessBean abAccount)
This method sets the Account property of the command.
|
void |
setBuyerPONumber(java.lang.String sBPONum)
This method sets the BuyerPONumber property of the command.
|
void |
setCreateFlag(boolean createFlag)
This method sets the createFlag property of the command.
|
void |
setErrorViewName(java.lang.String sEVN)
This method sets the error view to be used to report error.
|
void |
setOrder(OrderAccessBean abOrder)
This method sets the order property of the command.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
static final java.lang.String ERRTASK_NAME
java.lang.Long getBuyerPOId()
java.lang.Integer getBuyerPOType()
The following buyer purchase order types are defined:
PaymentConstants.BUYERPOTYPE_BLANKETPO
- blanket purchase order
PaymentConstants.BUYERPOTYPE_LIMITEDPO
- limited purchase order
PaymentConstants.BUYERPOTYPE_SINGLEUSEPO
- single-use individual purchase order
PaymentConstants.BUYERPOTYPE_MULTIPLEUSEPO
- multi-use individual purchase order
void setAccount(AccountAccessBean abAccount)
abAccount
- The AccountAccessBean of the order is associated with.void setBuyerPONumber(java.lang.String sBPONum)
sBPONum
- A String that specifies the actual buyer purchase order number specified by the customer for the purchase.void setCreateFlag(boolean createFlag)
createFlag
- A boolean that indicates if the command will create a new BuyerPO record if needed.void setErrorViewName(java.lang.String sEVN)
sEVN
- A String that specifies the Error View name.void setOrder(OrderAccessBean abOrder)
abOrder
- The OrderAccessBean of the order to be processed.