public class CheckPaymentTCsCmdImpl extends TaskCommandImpl implements CheckPaymentTCsCmd
Constructor and Description |
---|
CheckPaymentTCsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.math.BigDecimal | checkOrderAndItemTotals()
This method validates order totals and order Item totals.
|
protected AccountAccessBean | getAccount()
This method gets the business account if one is specified by the trading agreements used by the order items of the order being processed.
|
protected java.lang.Long | getBuyerPOId()
This method gets the internal ID of the BuyerPO record if a buyer purchase order number is specified.
|
OrderAccessBean | getOrder()
This method gets the order access bean associated with this command.
|
java.lang.String | getPONumber()
This method gets the PONumber attribute passed to the command by the caller.
|
protected java.math.BigDecimal | getTotalAmount()
This method gets the total payment amount of the order for Payment Rules PrimePayment.
|
void | performExecute()
This method executes some check (TCs) before payments.
|
void | reset()
The method resets the instance variables of the command.
|
protected void | setAccount(AccountAccessBean account)
This method sets the business account ID.
|
protected void | setBuyerPOId(java.lang.Long n)
This method sets the buyerPO ID.
|
void | setOrder(OrderAccessBean bean)
This method sets the order access bean associated with this command.
|
void | setPONumber(java.lang.String sPONumber)
This method sets the purchase order number.
|
void | validateParameters()
This method performs server side parameter checking.
|
public void performExecute() throws ECException
This method executes some check (TCs) before payments. It performs the following:
protected void setBuyerPOId(java.lang.Long n)
protected java.lang.Long getBuyerPOId()
protected AccountAccessBean getAccount()
This method gets the business account if one is specified by the trading agreements used by the order items of the order being processed.
If there is no business account associated with any of the trading agreements, null is returned.
protected void setAccount(AccountAccessBean account)
This method sets the business account ID.
This is the common account if one is specified by the trading agreements used by the order items of the order being processed. If there is no common account , this method should not be called at all.
public OrderAccessBean getOrder()
This method gets the order access bean associated with this command.
public void setOrder(OrderAccessBean bean)
public void setPONumber(java.lang.String sPONumber)
public java.lang.String getPONumber()
public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
protected java.math.BigDecimal checkOrderAndItemTotals() throws ECApplicationException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, javax.ejb.CreateException
protected java.math.BigDecimal getTotalAmount() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void validateParameters() throws ECException