public class Cost
extends java.lang.Object
Constructor and Description |
---|
Cost() |
Modifier and Type | Method and Description |
---|---|
double |
calcLoadedCost(UserInfo user,
double linecost,
double proratecost,
double[] tax,
boolean issue,
java.lang.String orgID,
MboRemote mbo)
calculate the loadedcost for a poline,matrectrans,PR,PO,Sevrectrans record
linecost: the current poline/matrectrans cost
proratecost: the current poline/matrectrans proratecost
tax: an array of taxes,
tax[0]=0 not used typecode
tax[1] corresponds to tax1 for tax1code 1
tax[2] " tax2 tax2code 2
tax[3] " tax3 tax3code 3
tax[4] " tax4 tax4code 4
tax[5] " tax5 tax5code 5
issue: if this is a direct issue? true or false.
|
double |
calcMatRecProrateCost(MboRemote mbo)
Calculates the prorate cost for a Material receipt.
|
double |
calcProrateCost(MboRemote mbo,
double receiptLineCost)
Original method used to calculate the proratecost.
|
double |
calcServRecProrateCost(MboRemote mbo)
Calculates the prorate cost for a Service receipt
Following are the rules.
See if anything is available to prorate. |
double |
determineLoadedCostIfProrated(MboRemote mbo)
Returns the actual loadedcost of the prorated service line.
|
void |
prorateServices(MboSetRemote lines)
Allocate the service cost to the material lines.
|
public double calcLoadedCost(UserInfo user, double linecost, double proratecost, double[] tax, boolean issue, java.lang.String orgID, MboRemote mbo) throws MXException, java.rmi.RemoteException
issue
- tax
- linecost
- proratecost
- MXException
java.rmi.RemoteException
public double calcMatRecProrateCost(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double calcServRecProrateCost(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void prorateServices(MboSetRemote lines) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public double determineLoadedCostIfProrated(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double calcProrateCost(MboRemote mbo, double receiptLineCost) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException