public class UpdateSpendingLimitCmdImpl extends TaskCommandImpl implements UpdateSpendingLimitCmd
Constructor and Description |
---|
UpdateSpendingLimitCmdImpl() |
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 returns 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()
The method returns 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.
|
boolean | isAllowPONumberAsNull()
This method returns if allow purchase order number as Null.
|
void | performExecute()
This method executes the business logic of this command implementation.
|
void | reset()
This method resets the instance variables of the command.
|
protected void | setAccount(AccountAccessBean account)
This method sets the business account ID.
|
void | setAllowPONumberAsNull(boolean bAllowPONumberAsNull)
This method sets if allow purchase order number as Null.
|
protected void | setBuyerPOId(java.lang.Long n)
This method sets the buyer purchase order 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 extracts and validates the input parameters of this command implementation.
|
public void performExecute() throws ECException
protected void setBuyerPOId(java.lang.Long n)
protected java.lang.Long getBuyerPOId()
protected AccountAccessBean getAccount()
This method returns 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
public boolean isAllowPONumberAsNull()
public void setAllowPONumberAsNull(boolean bAllowPONumberAsNull)