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 |
boolean |
poToleranceCalculated |
double |
priceVarTotal |
boolean |
taxDiffOnly |
MULTILANGCOPY, phantomList, phantomQueue
ALLROWS, 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.
|
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.
|
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<MboRemote> 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.
|
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.
|
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 |
validateInvoiceMatchForApproval()
Check if any invoice match is currently specified for the invoice line.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copyFake, copyValue, copyValue, createComm, delete, 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, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getRowStamp, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeRelatedSet, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, 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, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, 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, 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, unlock, unselect, validate, validateAttributes
public boolean poToleranceCalculated
public double curVarTotal
public double priceVarTotal
public boolean taxDiffOnly
public InvoiceLine(MboSet ms) throws java.rmi.RemoteException
ms
- java.rmi.RemoteException
public InvoiceCostRemote getNewInvoiceCost() throws MXException, java.rmi.RemoteException
getNewInvoiceCost
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public 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 MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void modify() throws MXException, java.rmi.RemoteException
modify
in class Mbo
MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXApplicationException
- (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.MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- MXException
java.rmi.RemoteException
Mbo.delete(long)
public double getPOToInvCur() throws MXException, java.rmi.RemoteException
getPOToInvCur
in interface InvoiceLineRemote
MXApplicationException
- (invoice, POMissing) PO not found.MXApplicationException
- (invoice, ExchangeRateNotFound) Exchangerate not found.MXException
java.rmi.RemoteException
public void recalculatePreTaxTotalWhenDelete() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public void copyPOLine() throws MXException, java.rmi.RemoteException
copyPOLine
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public void clearPOLine() throws MXException, java.rmi.RemoteException
clearPOLine
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public void validateCurrency(java.lang.String invoiceCurrency) throws MXException, java.rmi.RemoteException
validateCurrency
in interface InvoiceLineRemote
invoiceCurrency
- Invoice currency on the invoice header.MXApplicationException
- (invoice, ExchangeRateNotFound) Exchange rate not found.MXException
java.rmi.RemoteException
public void validateInvoiceMatchForApproval() throws MXException, java.rmi.RemoteException
validateInvoiceMatchForApproval
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public void checkForServiceProrating() throws MXException, java.rmi.RemoteException
checkForServiceProrating
in interface InvoiceLineRemote
MXApplicationException
- (invoice, MultiCostsForProrate) Cannot prorate services.MXException
java.rmi.RemoteException
public 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 InvoiceLineRemote
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.MXApplicationException
- (invoice, LesThanPOTolerance) Less than allowed PO tolerance.MXException
java.rmi.RemoteException
public MboRemote createDefaultServiceReceipt() throws MXException, java.rmi.RemoteException
createDefaultServiceReceipt
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public MboRemote createDefaultMaterialReceipt() throws MXException, java.rmi.RemoteException
createDefaultMaterialReceipt
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public MboRemote createDefaultReceipt() throws MXException, java.rmi.RemoteException
createDefaultReceipt
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public MboRemote createDefaultReceipt(MboSetRemote desiredReceipts) throws MXException, java.rmi.RemoteException
createDefaultReceipt
in interface InvoiceLineRemote
desiredReceipts
- desired receipts mbo set which the newly created receipt
will belong too.MXException
java.rmi.RemoteException
public InvoiceMatchSetRemote getInvoiceMatchSet() throws MXException, java.rmi.RemoteException
getInvoiceMatchSet
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public void createReceipts() throws MXException, java.rmi.RemoteException
createReceipts
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public double calcProrateCostForReceipt() throws MXException, java.rmi.RemoteException
calcProrateCostForReceipt
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public double getRatioForTransaction() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean needProcessVariance() throws MXException, java.rmi.RemoteException
needProcessVariance
in interface InvoiceLineRemote
MXApplicationException
MXException
java.rmi.RemoteException
public void createReceiptOrTransactionForVariance() throws MXException, java.rmi.RemoteException
InvoiceLineRemote
createReceiptOrTransactionForVariance
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public void createTransactionsAfterAppr(double currencyVar, double priceVar) throws MXException, java.rmi.RemoteException
createTransactionsAfterAppr
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public double findOrigReceiptSum(java.lang.String attribute) throws MXException, java.rmi.RemoteException
findOrigReceiptSum
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public void createInvoiceTrans() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Vector returnGls(boolean updateInventory, boolean varType) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Vector returnGls(boolean updateInventory, boolean varType, MboRemote transMbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean getIssue() throws MXException, java.rmi.RemoteException
getIssue
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public void moveToTop(java.util.Vector<MboRemote> receipts, java.lang.String receiptId) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void afterAdd() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo
public void setCurVarTotal(double currencyVariance) throws MXException, java.rmi.RemoteException
setCurVarTotal
in interface InvoiceLineRemote
currencyVariance
- Currency variance value the global variable curVarTotal is
to be set to.MXException
java.rmi.RemoteException
public void setPriceVarTotal(double priceVariance) throws MXException, java.rmi.RemoteException
setPriceVarTotal
in interface InvoiceLineRemote
priceVariance
- Price variance value the global variable priceVarTotal is
to be set to.MXException
java.rmi.RemoteException
public void copyReceiptPOLineToInvoiceLine(MboRemote receiptOrPOLine, double qty, double cost) throws MXException, java.rmi.RemoteException
copyReceiptPOLineToInvoiceLine
in interface InvoiceLineRemote
receiptOrPOLine
- The receipt or poline mbo from which the values will be copied.qty
- Invoice order unit.cost
- Invoice cost in invoice currency.MXException
java.rmi.RemoteException
public 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.MXException
java.rmi.RemoteException
public 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.MXException
java.rmi.RemoteException
public void createInvoiceCostFromInvoiceLine(MboRemote newInvoiceLine, MboRemote poLine) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote copy(MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
copy
in interface MboRemote
copy
in class Mbo
mboSet
- The set into which the new mbo will be added.MXException
java.rmi.RemoteException
Mbo.copy(MboSetRemote, long)
public void canDistributeInvoiceLine() throws MXException, java.rmi.RemoteException
canDistributeInvoiceLine
in interface InvoiceLineRemote
MXApplicationException
- (invoice, POLineMissing) Related PO Line is missing.MXApplicationException
- (invoice, DistributedInPO) Line already distributed in PO.MXException
java.rmi.RemoteException
public void canDistributeProrateInvoiceLine() throws MXException, java.rmi.RemoteException
canDistributeProrateInvoiceLine
in interface InvoiceLineRemote
MXApplicationException
- (invoice, CannotDistProrateLine) Line cannot be distributed
as it can be prorated.MXException
java.rmi.RemoteException
public void canAllocateServices() throws MXException, java.rmi.RemoteException
canAllocateServices
in interface InvoiceLineRemote
MXApplicationException
- (invoice, CannotAllocateServices) Cannot allocate services as
no services to prorate.MXException
java.rmi.RemoteException
public void CanAllocateServIfEnteredOrWappr() throws MXException, java.rmi.RemoteException
CanAllocateServIfEnteredOrWappr
in interface InvoiceLineRemote
MXApplicationException
- (invoice, AllocateServIfEnteredOrWappr) Can allocate services
only if invoice status is ENTERED or WAPPR.MXException
java.rmi.RemoteException
public void initRelationship(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
initRelationship
in class Mbo
MXException
java.rmi.RemoteException
public void canDistributeIssueInvoiceLine() throws MXException, java.rmi.RemoteException
canDistributeIssueInvoiceLine
in interface InvoiceLineRemote
MXApplicationException
- (invoice, SaveBeforeDistCost) Save before distributing costs.MXApplicationException
- (invoice, POLineMissing) Related PO Line is missing.MXApplicationException
- (invoice, POLineNotDirectIssue) PO Line is not a direct issue.MXException
java.rmi.RemoteException
public void updateWOCosts() throws MXException, java.rmi.RemoteException
updateWOCosts
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public void undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public void creatInvTransForProrate(double prorateCostForInvTrans) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getRatioGoesToReceipt() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void recalcDistribution() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getInternalLineType() throws MXException, java.rmi.RemoteException
getInternalLineType
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
getInternalLineType()
public void addCostFromPOLine(InvoiceCostSetRemote invCostSet, MboRemote poLine) throws MXException, java.rmi.RemoteException
addCostFromPOLine
in interface InvoiceLineRemote
invCostSet
- 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.MXException
java.rmi.RemoteException
public boolean isServiceType() throws MXException, java.rmi.RemoteException
isServiceType
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
isServiceType()
public void setPriceQtyFields() throws MXException, java.rmi.RemoteException
setPriceQtyFields
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
setPriceQtyFields()
public void checkWOAssetLocGLDebitForLine() throws MXException, java.rmi.RemoteException
checkWOAssetLocGLDebitForLine
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
checkWOAssetLocGLDebitForLine()
public void clearClassification() throws java.rmi.RemoteException, MXException
clearClassification
in interface InvoiceLineRemote
java.rmi.RemoteException
MXException
clearClassification()
public void getDefaultTaxExempt(MboRemote itemRemote, MboRemote invVendor) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void getDefaultTaxCodes(MboRemote itemRemote, MboRemote invVendor) throws MXException, java.rmi.RemoteException
getDefaultTaxCodes
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
public double getInventoryCurbal() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getActivePO() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void copyConsTransToInvoiceLine(MboRemote transMbo) throws MXException, java.rmi.RemoteException
copyConsTransToInvoiceLine
in interface InvoiceLineRemote
transMbo
- MXException
java.rmi.RemoteException
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 trueMXException
java.rmi.RemoteException
public void createVarTransForConsInvoiceLine() throws MXException, java.rmi.RemoteException
createVarTransForConsInvoiceLine
in interface InvoiceLineRemote
MXException
java.rmi.RemoteException
createVarTransForConsInvoiceLine()
public void setReadOnlyForConsInvoice() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getConsTransMbo(java.lang.String origTransaction, int transID) throws MXException, java.rmi.RemoteException
origTransaction
- transID
- MXException
java.rmi.RemoteException
public void save() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void clearLabTransOnDelete() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setPOLineFromCopyPOLine(MboRemote poLineFromCopyPOline) throws MXException, java.rmi.RemoteException
poLineFromCopyPOline
- MXException
java.rmi.RemoteException
public MboRemote getPOLineFromCopyPOLine() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException