public class Invoice.UninvoicedReceiptsInfo
extends java.lang.Object
Constructor and Description |
---|
UninvoicedReceiptsInfo(Invoice inv)
Constructor: Create the empty hashtables, set byCost, set type, and retrieve the receipt
MboSet.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Close everything.
|
double |
getIssueUnitCost(MboRemote receipt,
MboRemote invoiceLine)
Get the unit cost of receipt in issue unit and invoice's currency.
|
double[] |
getNewlyAllocated(java.lang.String invoiceLineNum,
java.lang.String receiptID)
Get the allocated quantity or cost of a receipt to a certain invoice line.
|
double |
getRemainingCost(MboRemote receipt)
Get the remaining unmatched cost of the receipt.
|
double |
getRemainingQty(MboRemote receipt)
Get the remaining unmatched quantity of a receipt.
|
java.util.Vector<MboRemote> |
getUninvoicedReceipts(java.lang.String poNum,
java.lang.String polinenum,
int type,
boolean isCreditInvoice,
java.lang.String siteID,
boolean isNegativeLine,
java.lang.String receiptID)
Get the uninvoiced receipts of the type, ponum, and polinenum, ordered by their
transaction dates.
|
void |
update(MboRemote invoiceLine,
MboRemote receipt,
double qty,
double cost)
Update the newAllocation and uninvoicedQtyCost hashtables by the match of this receipt.
|
public UninvoicedReceiptsInfo(Invoice inv)
inv
- public void destroy()
public double getRemainingQty(MboRemote receipt) throws MXException, java.rmi.RemoteException
receipt
- The Mbo remote of the receipt.MXException
java.rmi.RemoteException
public double getRemainingCost(MboRemote receipt) throws MXException, java.rmi.RemoteException
receipt
- The Mbo remote of the receipt.MXException
java.rmi.RemoteException
public double[] getNewlyAllocated(java.lang.String invoiceLineNum, java.lang.String receiptID)
invoiceLineNum
- The identifier of the invoice line.receiptID
- The identifier of the receipt.public java.util.Vector<MboRemote> getUninvoicedReceipts(java.lang.String poNum, java.lang.String polinenum, int type, boolean isCreditInvoice, java.lang.String siteID, boolean isNegativeLine, java.lang.String receiptID) throws MXException, java.rmi.RemoteException
poNum
- PO number for this invoice linepolinenum
- The POLine number.type
- The type of receipt: material or service.MXException
java.rmi.RemoteException
public void update(MboRemote invoiceLine, MboRemote receipt, double qty, double cost) throws MXException, java.rmi.RemoteException
invoiceLine
- The invoice line which this match is done on.receipt
- The MboRemote of the receipt which is matched to the invoice-invoiceline.qty
- Quantity of the receipt which is matched to this invoice-invoiceline.
It's in issue unit.cost
- Cost of the receipt which matched to this invoice-invoiceline.
It's in invoice's currency.MXApplicationException
- (invoice, NoSuchReceipt) Receipt not found.MXException
java.rmi.RemoteException
public double getIssueUnitCost(MboRemote receipt, MboRemote invoiceLine) throws MXException, java.rmi.RemoteException
receipt
- The receipt Mbo Remote.MXException
java.rmi.RemoteException