public class Taxes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
NUMBEROFTAXCODES
constant to indicate number of taxcodes, currently, there are 5.
|
Modifier and Type | Method and Description |
---|---|
double |
calculateTax(double linecost,
java.lang.String taxCode,
int whichTax)
This method calculates and returns the tax amount
for a taxcode.
|
int |
findTypeCode(java.lang.String thisAttrName)
method to parse a string that may look like, ex, "tax1code","tax2code",
thru "tax5code"
return an integer to incidicate the typecode of this tax?code.
|
public int NUMBEROFTAXCODES
public Taxes(MboRemote mbo)
public double calculateTax(double linecost, java.lang.String taxCode, int whichTax) throws MXException, java.rmi.RemoteException
linecost
- taxCode
- whichTax
- MXException
java.rmi.RemoteException
public int findTypeCode(java.lang.String thisAttrName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException