public class InvoiceLine extends Mbo implements InvoiceLineRemote
See Invoice Package description.
The key attributes for this object are InvoiceNum and InvoiceLineNum.
The attributes in this object are as follows:
| Attribute Name | Attribute Description |
|---|---|
| ContractRefNum | Read-only field containing the reference number of the contract. |
| Description | Description of the item. |
| Conversion | The value used to convert the order unit to the issue unit, and vice versa. |
| EnterBy | The name or user ID of the person who created the line item. |
| EnterDate | Date and time the line item was created. |
| InvoiceLineNum | Unique system generated invoice line item number. |
| InvoiceNum | Identifier of the invoice. |
InvoiceQty | Number of items invoiced on this line. |
InvoiceUnit | Standard unit by which the item is ordered, taken from the PO line. |
| ItemNum | Item number, displayed from the corresponding Purchase Order (PO) line.
Foreign key to FldInventoryItemnum.
|
ItemSetID | Item Set Identifier. * |
| LDkey | Long Description Key. |
LineCost | Cost of the line item, calculated as Invoice Quantity * Unit Cost. |
| LineCost2 | Line cost in base currency 2. |
LineType | The type of Invoice Line. Possible values include ITEM, MATERIAL, SERVICE or EXTERNAL. |
| LoadedCost | Total cost of the line item calculated as: Line Cost + Tax + Standard Service. |
| OrgID | Organization Identifier. |
POLineNum | Line item on the Purchase Order (PO) that this invoice line refers to. |
PONum | Purchase Order (PO) that the line
item is from. Foreign key to PO.
|
| ProrateCost | Amount of standard service costs loaded on the line item. |
| Prorated | Yes/No field indicating whether the line item has been prorated (allocated). |
| ProrateService | Yes/No field indicating whether the cost of the standard services should be prorated (loaded) to this line item's cost. |
| ReceiptReqd | Yes/No field indicating whether invoice matching is required. |
| SiteID | Site Identifier. |
Tax1 - Tax5 | Amount of tax for taxcode of type 1 thru 5, payable for the line item. |
Tax1Code - Tax5Code | The taxcode of type 1 thru 5, used to calculate the value of TAX1 thru TAX5 fields. |
UnitCost | Cost per unit of the item. |
| Vendor | Supplier of the invoice. Foreign key to Company.
|
| InvoiceLin1 - InvoiceLin9 | Extra fields. |
| Modifier and Type | Field and Description |
|---|---|
double |
curVarTotal |
protected boolean |
matchForApproval |
protected InvoiceCostRemote |
newInvoiceCost |
boolean |
poToleranceCalculated |
double |
priceVarTotal |
boolean |
taxDiffOnly |
MULTILANGCOPY, phantomList, phantomQueueALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
InvoiceLine(MboSet ms)
Construct the InvoiceLine object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
This is called when a new invoice line is added by invoice
It sets the default field values and access flags of the invoice line.
|
void |
addCostFromPOLine(InvoiceCostSetRemote invCostSet,
MboRemote poLine)
This method adds new invoice cost lines and copies over the values from PO Cost and PO line.
|
void |
afterAdd()
Called right after the new Invoiceline mbo is added to the invoiceline set.
|
void |
appValidate()
Pre-save validation method.
|
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 |
canDelete()
Invoice line can only be deleted if the owner invoice status is ENTERED or WAPPR equivalent.
|
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 invoice lines (i.e.
|
void |
checkWOAssetLocGLDebitForLine()
Make sure all the required payment information is there.
|
void |
clearClassification()
This method clears the classtructureid of the invoiveline.
|
void |
clearLabTransOnDelete()
IV30627/12-14489/defect 59573: clear invoicenum and invoicelinenum from labtrans if invoice is being
deleted.
|
void |
clearPOLine()
Clear the fields copied from poline on deleting the polinenum.
|
MboRemote |
copy(MboSetRemote mboSet)
Overwrite the copy method in MboSet.
|
void |
copyConsTransToInvoiceLine(MboRemote transMbo)
Copy the data from the consignment transaction mbo to this invoice line.
|
void |
copyPOLine()
Copy the poline fields.
|
void |
copyPOLineToInvoiceLine(MboRemote poLine,
double qty,
double cost)
Copy the poline info to the newly created invoiceline.
|
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.
|
void |
copyReceiptToInvoiceLine(MboRemote receipt,
double qty,
double cost)
Copy the receipt info to the newly created invoiceline.
|
MboRemote |
createDefaultMaterialReceipt()
Create a receipt by invoice.
|
MboRemote |
createDefaultReceipt()
Create a receipt attach to the receipt set owned by invoice.
|
MboRemote |
createDefaultReceipt(MboSetRemote desiredReceipts)
Create a receipt attach to the disired receipt set.
|
MboRemote |
createDefaultServiceReceipt()
Create a receipt by invoice.
|
void |
createInvoiceCostFromInvoiceLine(MboRemote newInvoiceLine,
MboRemote poLine)
This method copies the new invoice line and poline or receipt info to the newly created invoice
cost.
|
void |
createInvoiceTrans()
This method calls the methods that create the INVOICETRANS object.
|
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()
If this is a consignment invoice we have see if there is a variance and create
variance transactions
|
void |
creatInvTransForProrate(double prorateCostForInvTrans) |
void |
delete(long accessModifier)
Delete the invoice line record.
|
double |
findOrigReceiptSum(java.lang.String attribute)
Find the sum of certain numerical attibute of the receipts matching the 100%
invoicecost line of the invoiceline.
|
MboRemote |
getActivePO()
Based on Invoice Line ponum and po site to find an active PO that in APPR, INPRG or CLOSE status.
|
MboRemote |
getConsTransMbo(java.lang.String origTransaction,
int transID)
Utility method to get the related transacion mbo in case of consignment invoice.
|
void |
getDefaultTaxCodes(MboRemote itemRemote,
MboRemote invVendor)
This method gets taxcodes for the invoiceline based on taxorder.
|
void |
getDefaultTaxExempt(MboRemote itemRemote,
MboRemote invVendor)
This method gets taxexempt for the poline/prline based on taxorder
|
java.lang.String |
getInternalLineType()
Returns the internal representation of the Line Type field.
|
double |
getInventoryCurbal()
10-15967
|
InvoiceMatchSetRemote |
getInvoiceMatchSet()
Get the invoice match record for this invoice line.
|
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.
|
MboRemote |
getPOLineFromCopyPOLine()
IV35816/7120: for performance
|
double |
getPOToInvCur()
Obtain the exchangerate from po's currency to invoice's currency.
|
double |
getRatioForTransaction()
When the receipt is created, the average cost of the storeroom is updated to reflect
the value.
|
double |
getRatioGoesToReceipt()
based on update inventory, current balance, invoiceqty to decide how much goes to receipt.
|
double |
getUnmatched()
Helper function to check if this invoiceline has been fully matched.
|
java.lang.String[] |
getValidateOrder()
Validation Order for InvoiceLine attributes.
|
void |
init()
Initialzation rountine.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
The invoicecost should be readonly if it is copied from poline's existing distribution.
|
protected void |
invoiceMatch()
This method matches the invoice line with one or more uninvoiced receipts of
the PO-POLine indicated on the invoice.
|
boolean |
isServiceType()
The method checks to find if the InvoiceLine is a Service or STDService type.
|
void |
modify()
This is called whenever a change is made to the attributes of invoice line.
|
void |
moveToTop(java.util.Vector receipts,
java.lang.String receiptId) |
boolean |
needProcessVariance()
Does this invoice line need to process variance?
If the invoice doesn't refer to a PO - POLine, then only brand new receipt
will be written for this invoiceline, so, no variance calculation is needed.
|
void |
recalcDistribution()
Recalculate the linecost and or quantity based on the same distribution
This method should only be called when the line's quantity or cost has changed.
|
void |
recalculatePreTaxTotalWhenDelete()
This method re-calculates pretaxtotal.
|
java.util.Vector |
returnGls(boolean updateInventory,
boolean varType) |
java.util.Vector |
returnGls(boolean updateInventory,
boolean varType,
MboRemote transMbo)
This method is a private method that gets the PONUM-POLINENUM from the invoice line and based on this info
grabs the POLINE.From the POLINE it gets hold of the ITEM-STORELOC and gets the corresponding INVENTORY
record for the ITEM-STORELOC combination.This method is purely meant for code reduction because
both writePriceVarianceToInvoiceTrans() and writeCurrencyVarianceToInvoiceTrans() need to get hold of the
GLDEBIT and GLCREDIT account numbers for the ITEM-STORELOC combination and/or from the vendor.
|
void |
save()
Override the super class save.
|
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.
|
protected void |
setEditibilityFlags()
Set the read-only flags for fields where it changes.
|
void |
setPOLineFromCopyPOLine(MboRemote poLineFromCopyPOline)
IV35816/71201:the for performance: poLineCopyPOLine mbo is the POLine shown on the Copy POLine dialog.
|
void |
setPriceQtyFields()
Based on ContractLine ChgPriceOnUse and ChgQtyOnUse value to set line cost, unit cost,
order unit and quantity to be read only or editable.
|
void |
setPriceVarTotal(double priceVariance)
This method is to be used by ERP to set the global variable priceVar when they don't
want us to calculate the price variance instead they do it.
|
void |
setReadOnlyForConsInvoice()
Set these fields readonly for consignment type invoice.
|
protected boolean |
skipCopyField(MboValueInfo mvi)
Overwrites the skipCopyField() in the Mbo.
|
void |
undelete()
This method undeletes an invoice line that has been marked for deletion.
|
void |
updateConsTransInvoiceNum(boolean clearInvoiceNum)
Updated the transaction that created this invoice/invoice line with the invoice number.
|
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)
Called by invoice's currencyValidation() before approval.
|
void |
validateInvoiceMatch()
Called by appValidate() to validate the invoice match lines associated with
this invoice line.
|
void |
validateInvoiceMatchForApproval()
Check if any invoice match is currently specified for the invoice line.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRecordType, getRelatedSets, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getTenantIdForNoMboRecordData, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, isApiBatchError, isAppLockEnabled, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setRecordType, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setTenantIdForNoMboRecordData, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copyFake, copyValue, copyValue, createComm, 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, getMboValueDataForDownload, 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, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributespublic boolean poToleranceCalculated
public double curVarTotal
public double priceVarTotal
public boolean taxDiffOnly
protected InvoiceCostRemote newInvoiceCost
protected boolean matchForApproval
public InvoiceLine(MboSet ms) throws java.rmi.RemoteException
ms - java.rmi.RemoteExceptionpublic InvoiceCostRemote getNewInvoiceCost() throws MXException, java.rmi.RemoteException
getNewInvoiceCost in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
init in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
| Attribute Name | Attribute Value |
|---|---|
| enterby | Current username |
| enterdate | Current date |
| invoicelinenum | Add one to the existing maximum value |
| invoicenum | Owner Invoice's invoicenum |
| linecost | 0.0(Zero) |
| linecost2 | 0.0(Zero) |
| loadedcost | 0.0(Zero) |
| ponum | Owner Invoice's ponum(if any) |
| prorated | No |
| prorateservice | No |
| receiptreqd | No |
| Linetype | Service |
| tax1..5 | 0.0(Zero) |
| vendor | Owner Invoice's vendor |
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionpublic void modify()
throws MXException,
java.rmi.RemoteException
modify in class MboMXExceptionjava.rmi.RemoteExceptionprotected void setEditibilityFlags()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXApplicationException - (invoice, CannotDeleteLine) Cannot delete invoice line if invoice
status is not ENTERED or WAPPR equivalent.MXApplicationException - (invoice, CannotDeleteAllocatedLines) Cannot delete invoice line
if allocation has been done.MXExceptionjava.rmi.RemoteExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemotedelete in class MboaccessModifier - MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public double getPOToInvCur()
throws MXException,
java.rmi.RemoteException
getPOToInvCur in interface InvoiceLineRemoteMXApplicationException - (invoice, POMissing) PO not found.MXApplicationException - (invoice, ExchangeRateNotFound) Exchangerate not found.MXExceptionjava.rmi.RemoteExceptionpublic void recalculatePreTaxTotalWhenDelete()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic void validateInvoiceMatch()
throws MXException,
java.rmi.RemoteException
MXApplicationException - (invoice, InvoiceMatchInvalid) Total of invoice match quantity
not equal to that of invoice line.MXApplicationException - (invoice, InvoiceMatchExceedsReceipt) Invoice match quantity
should be equal to the receipt quantity.MXExceptionjava.rmi.RemoteExceptionpublic void copyPOLine()
throws MXException,
java.rmi.RemoteException
copyPOLine in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic void clearPOLine()
throws MXException,
java.rmi.RemoteException
clearPOLine in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic void validateCurrency(java.lang.String invoiceCurrency)
throws MXException,
java.rmi.RemoteException
validateCurrency in interface InvoiceLineRemoteinvoiceCurrency - Invoice currency on the invoice header.MXApplicationException - (invoice, ExchangeRateNotFound) Exchange rate not found.MXExceptionjava.rmi.RemoteExceptionpublic void validateInvoiceMatchForApproval()
throws MXException,
java.rmi.RemoteException
validateInvoiceMatchForApproval in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic void checkForServiceProrating()
throws MXException,
java.rmi.RemoteException
checkForServiceProrating in interface InvoiceLineRemoteMXApplicationException - (invoice, MultiCostsForProrate) Cannot prorate services.MXExceptionjava.rmi.RemoteExceptionpublic void checkForPOLineTolerance(java.lang.Double upperTolerancePct,
java.lang.Double lowerTolerancePct,
java.lang.Double upperToleranceAmt,
java.lang.Double lowerToleranceAmt)
throws MXException,
java.rmi.RemoteException
checkForPOLineTolerance in interface InvoiceLineRemoteupperTolerancePct - 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.MXApplicationException - (invoice, LesThanPOTolerance) Less than allowed PO tolerance.MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createDefaultServiceReceipt() throws MXException, java.rmi.RemoteException
createDefaultServiceReceipt in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboRemote createDefaultMaterialReceipt() throws MXException, java.rmi.RemoteException
createDefaultMaterialReceipt in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboRemote createDefaultReceipt() throws MXException, java.rmi.RemoteException
createDefaultReceipt in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboRemote createDefaultReceipt(MboSetRemote desiredReceipts) throws MXException, java.rmi.RemoteException
createDefaultReceipt in interface InvoiceLineRemotedesiredReceipts - desired receipts mbo set which the newly created receipt
will belong too.MXExceptionjava.rmi.RemoteExceptionpublic InvoiceMatchSetRemote getInvoiceMatchSet() throws MXException, java.rmi.RemoteException
getInvoiceMatchSet in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic void createReceipts()
throws MXException,
java.rmi.RemoteException
createReceipts in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic double calcProrateCostForReceipt()
throws MXException,
java.rmi.RemoteException
calcProrateCostForReceipt in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic double getRatioForTransaction()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean needProcessVariance()
throws MXException,
java.rmi.RemoteException
needProcessVariance in interface InvoiceLineRemoteMXApplicationExceptionMXExceptionjava.rmi.RemoteExceptionpublic void createReceiptOrTransactionForVariance()
throws MXException,
java.rmi.RemoteException
InvoiceLineRemotecreateReceiptOrTransactionForVariance in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic void createTransactionsAfterAppr(double currencyVar,
double priceVar)
throws MXException,
java.rmi.RemoteException
createTransactionsAfterAppr in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic double findOrigReceiptSum(java.lang.String attribute)
throws MXException,
java.rmi.RemoteException
findOrigReceiptSum in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic void createInvoiceTrans()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Vector returnGls(boolean updateInventory,
boolean varType)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Vector returnGls(boolean updateInventory,
boolean varType,
MboRemote transMbo)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean getIssue()
throws MXException,
java.rmi.RemoteException
getIssue in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionprotected void invoiceMatch()
throws MXException,
java.rmi.RemoteException
MXApplicationException - "invoice"="matchNotFound" when matches cannot
be found for this invoice line.MXExceptionjava.rmi.RemoteExceptionpublic void moveToTop(java.util.Vector receipts,
java.lang.String receiptId)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic double getUnmatched()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void afterAdd()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String[] getValidateOrder()
getValidateOrder in class Mbopublic void setCurVarTotal(double currencyVariance)
throws MXException,
java.rmi.RemoteException
setCurVarTotal in interface InvoiceLineRemotecurrencyVariance - Currency variance value the global variable curVarTotal is
to be set to.MXExceptionjava.rmi.RemoteExceptionpublic void setPriceVarTotal(double priceVariance)
throws MXException,
java.rmi.RemoteException
setPriceVarTotal in interface InvoiceLineRemotepriceVariance - Price variance value the global variable priceVarTotal is
to be set to.MXExceptionjava.rmi.RemoteExceptionpublic void copyReceiptPOLineToInvoiceLine(MboRemote receiptOrPOLine, double qty, double cost) throws MXException, java.rmi.RemoteException
copyReceiptPOLineToInvoiceLine in interface InvoiceLineRemotereceiptOrPOLine - The receipt or poline mbo from which the values will be copied.qty - Invoice order unit.cost - Invoice cost in invoice currency.MXExceptionjava.rmi.RemoteExceptionpublic void copyReceiptToInvoiceLine(MboRemote receipt, double qty, double cost) throws MXException, java.rmi.RemoteException
receipt - The receipt or poline mbo from which the values will be copied.qty - Invoice order unit.cost - Invoice cost in invoice currency.MXExceptionjava.rmi.RemoteExceptionpublic void copyPOLineToInvoiceLine(MboRemote poLine, double qty, double cost) throws MXException, java.rmi.RemoteException
poLine - The poline mbo from which the values will be copied.qty - Invoice order unit.cost - Invoice cost in invoice currency.MXExceptionjava.rmi.RemoteExceptionpublic void createInvoiceCostFromInvoiceLine(MboRemote newInvoiceLine, MboRemote poLine) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote copy(MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
copy in interface MboRemotecopy in class MbomboSet - The set into which the new mbo will be added.MXExceptionjava.rmi.RemoteExceptionMbo.copy(MboSetRemote, long)protected boolean skipCopyField(MboValueInfo mvi) throws MXException, java.rmi.RemoteException
skipCopyField in class Mbomvi - The MboValueInfo object of the MboValue that needs to be copied.MXExceptionjava.rmi.RemoteExceptionInvoice.duplicate(),
Invoice.loadSkipFieldCopyHashSet()public void canDistributeInvoiceLine()
throws MXException,
java.rmi.RemoteException
canDistributeInvoiceLine in interface InvoiceLineRemoteMXApplicationException - (invoice, POLineMissing) Related PO Line is missing.MXApplicationException - (invoice, DistributedInPO) Line already distributed in PO.MXExceptionjava.rmi.RemoteExceptionpublic void canDistributeProrateInvoiceLine()
throws MXException,
java.rmi.RemoteException
canDistributeProrateInvoiceLine in interface InvoiceLineRemoteMXApplicationException - (invoice, CannotDistProrateLine) Line cannot be distributed
as it can be prorated.MXExceptionjava.rmi.RemoteExceptionpublic void canAllocateServices()
throws MXException,
java.rmi.RemoteException
canAllocateServices in interface InvoiceLineRemoteMXApplicationException - (invoice, CannotAllocateServices) Cannot allocate services as
no services to prorate.MXExceptionjava.rmi.RemoteExceptionpublic void CanAllocateServIfEnteredOrWappr()
throws MXException,
java.rmi.RemoteException
CanAllocateServIfEnteredOrWappr in interface InvoiceLineRemoteMXApplicationException - (invoice, AllocateServIfEnteredOrWappr) Can allocate services
only if invoice status is ENTERED or WAPPR.MXExceptionjava.rmi.RemoteExceptionpublic void initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
throws MXException,
java.rmi.RemoteException
initRelationship in class MboMXExceptionjava.rmi.RemoteExceptionpublic void canDistributeIssueInvoiceLine()
throws MXException,
java.rmi.RemoteException
canDistributeIssueInvoiceLine in interface InvoiceLineRemoteMXApplicationException - (invoice, SaveBeforeDistCost) Save before distributing costs.MXApplicationException - (invoice, POLineMissing) Related PO Line is missing.MXApplicationException - (invoice, POLineNotDirectIssue) PO Line is not a direct issue.MXExceptionjava.rmi.RemoteExceptionpublic void updateWOCosts()
throws MXException,
java.rmi.RemoteException
updateWOCosts in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic void undelete()
throws MXException,
java.rmi.RemoteException
undelete in interface MboRemoteundelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void creatInvTransForProrate(double prorateCostForInvTrans)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic double getRatioGoesToReceipt()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void recalcDistribution()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getInternalLineType()
throws MXException,
java.rmi.RemoteException
getInternalLineType in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionInvoiceLine.getInternalLineType()public void addCostFromPOLine(InvoiceCostSetRemote invCostSet, MboRemote poLine) throws MXException, java.rmi.RemoteException
addCostFromPOLine in interface InvoiceLineRemoteinvCostSet - The invoice cost set to which the new lines will be added.poLine - The corresponding PO line for this invoice line. Used to get the PO cost.MXExceptionjava.rmi.RemoteExceptionpublic boolean isServiceType()
throws MXException,
java.rmi.RemoteException
isServiceType in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionInvoiceLine.isServiceType()public void setPriceQtyFields()
throws MXException,
java.rmi.RemoteException
setPriceQtyFields in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionInvoiceLine.setPriceQtyFields()public void checkWOAssetLocGLDebitForLine()
throws MXException,
java.rmi.RemoteException
checkWOAssetLocGLDebitForLine in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionInvoiceLine.checkWOAssetLocGLDebitForLine()public void clearClassification()
throws java.rmi.RemoteException,
MXException
clearClassification in interface InvoiceLineRemotejava.rmi.RemoteExceptionMXExceptionInvoiceLine.clearClassification()public void getDefaultTaxExempt(MboRemote itemRemote, MboRemote invVendor) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void getDefaultTaxCodes(MboRemote itemRemote, MboRemote invVendor) throws MXException, java.rmi.RemoteException
getDefaultTaxCodes in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionpublic double getInventoryCurbal()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getActivePO() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void copyConsTransToInvoiceLine(MboRemote transMbo) throws MXException, java.rmi.RemoteException
copyConsTransToInvoiceLine in interface InvoiceLineRemotetransMbo - MXExceptionjava.rmi.RemoteExceptionInvoiceLine.copyConsTransToInvoiceLine(psdi.mbo.MboRemote)public void updateConsTransInvoiceNum(boolean clearInvoiceNum)
throws MXException,
java.rmi.RemoteException
clearInvoiceNum - Boolean to indicate if we need to clear invoice number if trueMXExceptionjava.rmi.RemoteExceptionpublic void createVarTransForConsInvoiceLine()
throws MXException,
java.rmi.RemoteException
createVarTransForConsInvoiceLine in interface InvoiceLineRemoteMXExceptionjava.rmi.RemoteExceptionInvoiceLine.createVarTransForConsInvoiceLine()public void setReadOnlyForConsInvoice()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getConsTransMbo(java.lang.String origTransaction, int transID) throws MXException, java.rmi.RemoteException
origTransaction - transID - MXExceptionjava.rmi.RemoteExceptionpublic void save()
throws MXException,
java.rmi.RemoteException
save in class MboMXExceptionjava.rmi.RemoteExceptionpublic void clearLabTransOnDelete()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setPOLineFromCopyPOLine(MboRemote poLineFromCopyPOline) throws MXException, java.rmi.RemoteException
poLineFromCopyPOline - MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getPOLineFromCopyPOLine() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException