public interface InvoiceLineRemote extends MboRemote
Modifier and Type | Field and Description |
---|---|
static double |
curVarTotal |
static double |
priceVarTotal |
Modifier and Type | Method and Description |
---|---|
void |
addCostFromPOLine(InvoiceCostSetRemote invCostSet,
MboRemote poLine)
This method adds new invoice cost lines and copies over the values from PO Cost and PO line.
|
double |
calcProrateCostForReceipt()
Calculate the proratecost which will be put on the receipt.
|
void |
canAllocateServices()
You can allocate services only if this invoice line is a prorate line i.e.
|
void |
CanAllocateServIfEnteredOrWappr()
You can allocate services only if the status of the owner invoice is ENTERED or WAPPR.
|
void |
canDistributeInvoiceLine()
If the related PO line is already distributed i.e POLINE.DISTRIBUTED=Y, you cannot distribute
this invoice line.
|
void |
canDistributeIssueInvoiceLine()
If the related PO line is a not a direct issue, you cannot distribute this invoice line.
|
void |
canDistributeProrateInvoiceLine()
If this invoice line is a prorate line i.e.
|
void |
checkForPOLineTolerance(java.lang.Double upperTolerancePct,
java.lang.Double lowerTolerancePct,
java.lang.Double upperToleranceAmt,
java.lang.Double lowerToleranceAmt)
For each invoice line that refers to a PO line, a check is made to ensure that the cost on
the invoice is not too different from the cost specified on the PO line.
|
void |
checkForServiceProrating()
If the invoice line have PRORATE = Y, PRORATECOST != 0 (should we check this?)
and there are distributions existing for any of the INVOICELINEs (i.e.
|
void |
checkWOAssetLocGLDebitForLine() |
void |
clearClassification() |
void |
clearPOLine()
Clear the fields copied from poline.
|
void |
copyConsTransToInvoiceLine(MboRemote transMbo) |
void |
copyPOLine()
Copy the poline fields
|
void |
copyReceiptPOLineToInvoiceLine(MboRemote receiptOrPOLine,
double qty,
double cost)
This method decides and calls the respective methods to copy receipt or poline info to the
newly created invoice line.
|
MboRemote |
createDefaultMaterialReceipt() |
MboRemote |
createDefaultReceipt()
Create a receipt by invoice.
|
MboRemote |
createDefaultReceipt(MboSetRemote desiredReceipts) |
MboRemote |
createDefaultServiceReceipt() |
void |
createReceiptOrTransactionForVariance()
Create servrectrans and matrectrans for invoice variance.
|
void |
createReceipts()
For each invoicecost, this function creates the receipt and invoice match
from invoicecost for the line
|
void |
createTransactionsAfterAppr(double currencyVar,
double priceVar)
This method is used to create invoice variance transactions and is called through the
invoice mbo.
|
void |
createVarTransForConsInvoiceLine() |
double |
findOrigReceiptSum(java.lang.String attribute)
Find the sum of certain numerical attibute of the receipts matching the 100%
invoicecost line of the invoiceline.
|
void |
getDefaultTaxCodes(MboRemote itemRemote,
MboRemote invVendor) |
java.lang.String |
getInternalLineType() |
InvoiceMatchSetRemote |
getInvoiceMatchSet()
Create invoice line for receipt.
|
boolean |
getIssue()
If it is a service, issue is always yes, if not, invoiceline must have a poline,
get it's issue flag from the poline.
|
InvoiceCostRemote |
getNewInvoiceCost()
Returns the newly added InvoiceCost mbo.
|
double |
getPOToInvCur()
Obtain the exchangerate from po's currency to invoice's currency.
|
boolean |
isServiceType() |
boolean |
needProcessVariance()
Does this invoice line need to process variance?
If the invoice doesn't refer to a PO - POLine, the only brand new receipt
will be written for this invoiceline, so, no variance calculation is needed.
|
void |
setCurVarTotal(double currencyVariance)
This method is to be used by ERP to set the global variable curVar when they don't
want us to calculate the currency variance instead they do it.
|
void |
setPriceQtyFields() |
void |
setPriceVarTotal(double priceVariance)
This method is to be used by ERP to set the global variable curVar when they don't
want us to calculate the currency variance instead they do it.
|
void |
updateWOCosts()
This method updates the actual service cost of the workorders which are associated to
the related invoice costs of the owner invoice.
|
void |
validateCurrency(java.lang.String invoiceCurrency)
Obtain exchange rate from po currency to invoice currency and base currency
|
void |
validateInvoiceMatchForApproval()
Check if any invoicematch is currently specifyed for the invoiceline.
|
add, addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, duplicate, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
static final double curVarTotal
static final double priceVarTotal
void copyPOLine() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void clearPOLine() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void addCostFromPOLine(InvoiceCostSetRemote invCostSet, MboRemote poLine) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void validateCurrency(java.lang.String invoiceCurrency) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void validateInvoiceMatchForApproval() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void checkForServiceProrating() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void checkForPOLineTolerance(java.lang.Double upperTolerancePct, java.lang.Double lowerTolerancePct, java.lang.Double upperToleranceAmt, java.lang.Double lowerToleranceAmt) throws MXException, java.rmi.RemoteException
upperTolerancePct
- The value specified in TOLERANCE.UPPERINVOICEPCT.lowerTolerancePct
- The value specified in TOLERANCE.LOWERINVOICEPCT.UpperToleranceAmt
- The value specified in TOLERANCE.UPPERINVOICEAMT.lowerToleranceAmt
- The value specified in TOLERANCE.LOWERINVOICEAMT.MXApplicationException
- (invoice, ExceedPOTolerance) Tolerance level exceeded.MXException
java.rmi.RemoteException
InvoiceMatchSetRemote getInvoiceMatchSet() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MboRemote createDefaultReceipt() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MboRemote createDefaultServiceReceipt() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MboRemote createDefaultMaterialReceipt() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MboRemote createDefaultReceipt(MboSetRemote desiredReceipts) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void createReceipts() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
double calcProrateCostForReceipt() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
boolean needProcessVariance() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void createReceiptOrTransactionForVariance() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void createTransactionsAfterAppr(double currencyVar, double priceVar) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
double findOrigReceiptSum(java.lang.String attribute) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
InvoiceCostRemote getNewInvoiceCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
boolean getIssue() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void setCurVarTotal(double currencyVariance) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void setPriceVarTotal(double priceVariance) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void copyReceiptPOLineToInvoiceLine(MboRemote receiptOrPOLine, double qty, double cost) throws MXException, java.rmi.RemoteException
receiptOrPOLine
- The receipt or poline mbo from which the values will be copied.qty
- The quantity which the user will calculate and pass in.cost
- The linecost which the user will calculate and pass in.MXException
java.rmi.RemoteException
void canDistributeInvoiceLine() throws MXException, java.rmi.RemoteException
MXApplicationException
- (invoice, POLineMissing) Related PO Line is missing.MXApplicationException
- (invoice, DistributedInPO) Line already distributed in PO.MXException
java.rmi.RemoteException
void canDistributeProrateInvoiceLine() throws MXException, java.rmi.RemoteException
MXApplicationException
- (invoice, CannotDistProrateLine) Line cannot be distributed
as it can be prorated.MXException
java.rmi.RemoteException
void canAllocateServices() throws MXException, java.rmi.RemoteException
MXApplicationException
- (invoice, CannotAllocateServices) Cannot allocate services as
no services to prorate.MXException
java.rmi.RemoteException
void CanAllocateServIfEnteredOrWappr() throws MXException, java.rmi.RemoteException
MXApplicationException
- (invoice, AllocateServIfEnteredOrWappr) Can allocate services
only if invoice status is ENTERED or WAPPR.MXException
java.rmi.RemoteException
double getPOToInvCur() throws MXException, java.rmi.RemoteException
MXApplicationException
- (invoice, POMissing) PO not found.MXApplicationException
- (invoice, ExchangeRateNotFound) Exchangerate not found.MXException
java.rmi.RemoteException
void canDistributeIssueInvoiceLine() throws MXException, java.rmi.RemoteException
MXApplicationException
- (invoice, POLineMissing) Related PO Line is missing.MXApplicationException
- (invoice, POLineNotDirectIssue) PO Line is not a direct issue.MXException
java.rmi.RemoteException
void updateWOCosts() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
java.lang.String getInternalLineType() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
InvoiceLine.getInternalLineType()
boolean isServiceType() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
InvoiceLine.isServiceType()
void setPriceQtyFields() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
InvoiceLine.setPriceQtyFields()
void checkWOAssetLocGLDebitForLine() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
InvoiceLine.checkWOAssetLocGLDebitForLine()
void clearClassification() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
InvoiceLine.clearClassification()
void getDefaultTaxCodes(MboRemote itemRemote, MboRemote invVendor) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void copyConsTransToInvoiceLine(MboRemote transMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
InvoiceLine.copyConsTransToInvoiceLine(psdi.mbo.MboRemote)
void createVarTransForConsInvoiceLine() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
InvoiceLine.createVarTransForConsInvoiceLine()