public class GetReturnTaxesCmdImpl extends TaskCommandImpl implements GetReturnTaxesCmd
If the command is successful in calculating the taxes, it will return the tax amounts for the net items.
Behaviour
recalculates taxes on the original order items net the items to be returned.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT |
Constructor and Description |
---|
GetReturnTaxesCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.math.BigDecimal | getNetAdjByCategoryForReturn(java.util.Hashtable aRMAItemAdjs, java.util.Hashtable aOrderItemAdjs, java.lang.Integer aTaxCategoryId)
Returns the net adjustment amounts for a particular tax category.
|
OrderItemAccessBean[] | getOrderItemABs()
Returns the
|
java.util.Hashtable | getOrderItemAdjustments(java.lang.Long aOrderItemId)
Obtains the original adjustment amounts for the
|
protected java.util.Hashtable | getRMAItemAdjustmentCredits(java.lang.Long aRMAItemId)
Obtains the adjustment credit amounts for the
|
void | performExecute()
Executes main business logic of the command.
|
void | setRMAItemABs(RMAItemAccessBean[] aRMAItemABs)
Sets the
|
void | validateParameters()
Checks mandatory parameters.
|
protected java.math.BigDecimal | validateTaxableNetPrice(OrderItemAccessBean aOrderItemAB, RMAItemAccessBean aRMAItemAB)
Returns the net adjustment amounts for a particular tax category.
|
public static final java.lang.String COPYRIGHT
protected java.math.BigDecimal getNetAdjByCategoryForReturn(java.util.Hashtable aRMAItemAdjs, java.util.Hashtable aOrderItemAdjs, java.lang.Integer aTaxCategoryId) throws ECException
public OrderItemAccessBean[] getOrderItemABs()
orderitemaccess beans.
orderitems.
public java.util.Hashtable getOrderItemAdjustments(java.lang.Long aOrderItemId) throws ECException
orderitemto be returned.
orderitem.
protected java.util.Hashtable getRMAItemAdjustmentCredits(java.lang.Long aRMAItemId) throws ECException
orderitemto be returned.
orderitem.
public void performExecute() throws ECException
public void setRMAItemABs(RMAItemAccessBean[] aRMAItemABs)
RMAItemfor which the new tax amounts are to be calculated.
orderItemto be returned.
public void validateParameters() throws ECException
protected java.math.BigDecimal validateTaxableNetPrice(OrderItemAccessBean aOrderItemAB, RMAItemAccessBean aRMAItemAB) throws ECException