Perform the checks on the specified buyerPONumber. Parameter:
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.)
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
defaultCommandClassName The default implementation of this command. |
static java.lang.String |
ERRTASK_NAME Name of the default error view for this command. |
static java.lang.String |
NAME The name of this command. |
Method Summary | |
---|---|
java.lang.Long |
getBuyerPOId() Returns the internal ID of the BuyerPO record if the specified buyer purchase order number is valid. |
java.lang.Integer |
getBuyerPOType() Returns the Buyer Purchase Order type referenced by the specified Buyer Purchase Order number. |
void |
setAccount(
AccountAccessBean abAccount) Sets the Account property of the command. |
void |
setBuyerPONumber(java.lang.String sBPONum) Sets the BuyerPONumber property of the command. |
void |
setCreateFlag(boolean createFlag) Sets the createFlag property of the command. |
void |
setErrorViewName(java.lang.String sEVN) Sets the error view to be used to report error. |
void |
setOrder(
OrderAccessBean abOrder)
Sets the order property of the command. |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
public static final java.lang.String ERRTASK_NAME
Method Detail |
---|
public java.lang.Long getBuyerPOId()
public java.lang.Integer getBuyerPOType()
The following buyer purchase order types are defined:
PaymentConstants.BUYERPOTYPE_BLANKETPO
- blanket purchase
orderPaymentConstants.BUYERPOTYPE_LIMITEDPO
- limited purchase
orderPaymentConstants.BUYERPOTYPE_SINGLEUSEPO
- single-use
individual purchase orderPaymentConstants.BUYERPOTYPE_MULTIPLEUSEPO
- multi-use
individual purchase orderpublic void setAccount(AccountAccessBean abAccount)
abAccount
- the AccountAccessBean of the order is associated
withpublic void setBuyerPONumber(java.lang.String sBPONum)
sBPONum
- the actual buyer purchase order number specified by
the customer for the purchasepublic void setCreateFlag(boolean createFlag)
createFlag
- true to allow the command to create a new BuyerPO
record if neededpublic void setErrorViewName(java.lang.String sEVN)
sEVN
- the Error View namepublic void setOrder(OrderAccessBean abOrder)
abOrder
- the OrderAccessBean of the order to be
processed