public class Invoice extends StatefulMbo implements InvoiceRemote
See Invoice Package description.
The key attribute for this object is InvoiceNum.
The attributes in this object are as follows:
Attribute Name | Attribute Description |
---|---|
APControlAcct | The credit account of the vendor used when the invoice is paid. |
ApprovalNum | Auto generated number on approval of invoice. |
APSuspenseAcct | The credit account of the vendor used when the invoice is approved. |
BankAccount | The company's bank account to which direct payments can be sent. |
BankNum | The company's bank and branch identification reference number, used when transferring funds electronically. |
BaseTotalCost | The total cost of the invoice expressed in the base currency. |
ChangeBy | The name or user ID of the person who last modified the invoice. |
ChangeDate | The date and time when invoice definition was last modified. |
CheckCode | Code indicating how to prepare the check. |
CheckNum | Number of the check used to pay the vendor. |
Contact | Name of the primary person to contact at the vendor. |
CurrencyCode | The currency in which
the invoice will be paid. Foreign key to Currency .
|
Description | Description or purpose of the invoice. |
Discount | Discount applied if the invoice is paid by the discount date. |
DiscountDate | Date by which the invoice must be paid to qualify for the discount. |
DocumentType | The type of invoice document: CREDIT, DEBIT or INVOICE. |
DueDate | Date by which the payment is due. |
EInvoice | Yes/No field indicating whether electronic invoice is received. |
EnterBy | The name or user ID of the person who created the invoice. |
EnterDate | Date and time the invoice was created. |
ExchangeDate | Date the exchange rate was applied. |
ExchangeRate | Currency exchange rate (base currency 1) at the time of invoice approval. |
ExchangeRate2 | Currency exchange rate (base currency 2) at the time of invoice approval. |
ExternalRefID | External Reference ID. |
FinancialPeriod | The open financial period during which the invoice was approved. |
GLPostDate | Date used to determine financial period. |
HistoryFlag | Yes/No field indicating whether the invoice is open or closed. |
Inclusive1 - Inclusive5 | Yes/No fields indicating whether the vendor is authorized to collect tax. |
InvoiceDate | Date on the invoice received from the vendor. |
InvoiceNum | Code used to identify the invoice. Unique identifier of this object. |
LDKey | Long Description Key. |
OrgID | Organization Identifier. |
OrigInvoiceNum | Identifier for the
original invoice for the items you want to return, if the type field is credit.
Foreign key to Invoice .
|
OwnerSysID | Owner system ID. |
Paid | The amount paid to the vendor. |
PaidDate | Date on which the invoice was paid. |
PaymentTerms | Forms of payments accepted by the vendor. |
PONum | Purchase Order (PO) for this invoice,
if one exists. Foreign key to PO .
|
PreTaxTotal (non-persistant) | Total cost of the goods invoiced, excluding taxes. |
SenderSysID | Column used by ERP-Integration (APIs). |
SiteID | Organization Identifier. |
SourceSysID | Source system ID. |
Status | The current status of the invoice. |
StatusDate | Date and time when the invoice was changed to the current status. |
SysCode | System flag required for user data entry. |
Tax1GL - Tax5GL | General Ledger account to which the tax will be applied. |
TotalCost | Total cost for the invoice, including taxes and standard service costs. |
TotalTax1 - TotalTax5 | Total tax of tax type 1 to 5, applied to the invoice. |
Vendor | Identifier of the vendor to whom the
remittance will be sent. Foreign key to Company .
|
VendorInvoiceNum | Vendor's invoice number. |
WFActive | Yes/No field indicating whether Work Flow is active on this invoice. |
WFID | Work Flow identification number. |
Modifier and Type | Class and Description |
---|---|
class |
Invoice.MatchResult |
onListTab, statusChangeButtonSigoption, targetStatusOption
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 |
---|
Invoice(MboSet ms)
Construct the Invoice object.
|
Modifier and Type | Method and Description |
---|---|
void |
add()
This is called when a new invoice is added to the Invoice MboSet collection.
|
void |
allocateServices(InvoiceLineSetRemote toBeAllocated,
InvoiceLineSetRemote acceptingLines)
Allocated the amount of services as specified in toBeAllocated to all the lines in the
acceptingSet proportional to the linecosts of the lines in the acceptingSet.
|
void |
approve()
Approve the invoice.
|
void |
appValidate()
This method is called by the framework before save.
|
void |
calcIntermediateLoadedCost()
Once the tax values are calculated, for any invoice line that has PRORATESERVICE=Y and no
POLINENUM(service lines), an intermediate loaded cost has to be determined that is used to
calculate the PRORATECOST.
|
double |
calculateUnInvoicedTotal()
This method calculates the uninvoiced total cost for a PO used on an invoice.
|
void |
canAllocateService()
Check if allocation service action can be done.
|
void |
cancelAllocateService()
Cancel the allocation service action.
|
void |
canChangeVendor() |
void |
canCopyPOLines()
Checks to see if there is a contract reference on the invoice.
|
void |
canDelete()
This method is called by the Mbo's delete method.
|
void |
canDeleteAttachedDocs()
Check if the attached document can be deleted.
|
void |
canDuplicateInvoice() |
void |
canReverseInvoice()
Can Reverse Invoice
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo)
This method is to be called internally when the invoice status is to be changed.
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
boolean autoClosePo)
This method is to be called by the UI change status page.
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
This method is overridden to add a wrapper to exceptions thrown during change status
and to write warnings whether or not the status change is successful
|
void |
changeVendorTaxInfo(MboRemote mboRemote) |
void |
checkAndClearAllocatedLines()
Called by the UI to caheck if allocation has been done on this invoice.
|
void |
checkForOpenStatus()
This method overwrites the method in the super class StateFulMbo.
|
void |
checkForPOLineTolerance()
For each INVOICELINE that refers to a POLINE, a check is made to ensure that the cost on
the INVOICE is not too different from the cost specified on the POLINE.
|
void |
checkForServiceLinePOTolerance()
For each INVOICELINE that refers to a POLINE with tolerance set, a check is made to ensure that the quantity or cost on
the INVOICEL is not greater than the quantity or cost specified on the POLINE.
|
void |
checkForServiceLineTolerance()
The ratio of service lines that do not refer to a PO-POLINE on the INVOICE, to the
sum of all the other lines that have a PO reference is checked to ensure that it does
not go beyond the values specified by TOLERANCE.UPPERPOAMT / TOLERANCE.LOWERPOAMT and
TOLERANCE.UPPERPOPCT / TOLERANCE.LOWERPOPCT.
|
void |
checkForTaxTolerance()
If the user has entered any taxes on the invoice header i.e.
|
void |
clearSyscode(long field)
Clear the syscode to indicate the field as specified by the parameter is set by external user.
|
void |
confirmMatch(MboRemote invoiceLine,
java.util.Vector matchReceipts)
This method confirms that a previously found match by findMatch() is being confirmed.
|
void |
copyFromContract(MboRemote contractRemote)
Copy contract info to Invoice header.
|
MboSetRemote |
copyPOLineToInvoiceLine(MboSetRemote poLineSet)
Create the invoice lines based on the passed in PO Line set and copy over the related info.
|
MboSetRemote |
copyReceiptToInvoiceLine(MboSetRemote receiptSet)
Create the invoice lines based on the passed in receipts set and copy over the related info.
|
void |
copyTerms(MboSetRemote termsSet)
This method will copy the selected terms to the set calling Mbo's corresponding Terms.
|
MboRemote |
createInvoiceForLabTrans(MboRemote labTrans,
double quantity,
double lineCost,
boolean lineByLine)
Create invoice lines and invoice costs for invoice created through labor transactions.
|
MboRemote |
createInvoiceForLeaseSched(MboRemote schedule,
double quantity,
double lineCost,
boolean singleLine)
Create invoice lines and invoice costs for invoice created through lease contracct payment schedule.
|
MboRemote |
createInvoiceForPurchSched(MboRemote poLine,
MboRemote scheduleLine,
MboRemote receipt)
Create invoice lines and invoice costs for invoice created through payment schedule.
|
MboRemote |
createInvoiceForReceipt(MboRemote receipt)
Create InvoiceLine, InvoiceCost, InvoiceMatch for receipt.
|
MboRemote |
createInvoiceForWarrSched(MboRemote schedule,
double quantity,
double lineCost)
Create invoice lines and invoice costs for invoice created through warranty contract payment schedule.
|
void |
createInvoiceLineForCons(java.util.ArrayList consTransByVendorList)
Creates invoice lines for this invoice based on the selected mbos passed in the ArrayList.
|
void |
createInvoiceLineForCons(MboSetRemote transSet)
Creates invoice lines for this invoice based on the selected mbos passed in the Mbo set.
|
void |
createInvoiceTransAfterAppr(MboRemote invoice,
double currencyVariance,
double priceVariance)
This method is to be used to create invoice variance transactions after approval.
|
void |
createInvoiceTransAfterAppr(java.lang.String invoicenum,
double currencyVariance,
double priceVariance)
This method is to be used to create invoice variance transactions after approval.
|
void |
createInvoiceTransForTaxes()
This method creates the invoice transaction for taxes.
|
void |
createInvoiceTransTotal()
For the Invoice as a whole a single transaction of type TOTAL is written.
|
void |
createReverseInvoice(java.lang.String status) |
void |
createReverseInvoice(java.lang.String invoiceNum,
java.lang.String description,
java.lang.String revReason,
java.util.Date glPostdate,
java.lang.String status)
Create Reverse Invoice
|
void |
createVarTransForConInvoice()
If this is a consignment invoice we have see if there is a variance and create
variance transactions
|
long[] |
defineSysCode()
Return long array for InvoiceSysCode.TOTALTAX1 to TOTALTAXN
|
void |
delete(long accessModifier)
This method deletes all the invoice lines connected to this invoice.
|
MboRemote |
duplicate()
Duplicates an Invoice record.
|
java.util.Vector |
findMatch(boolean exactFirst,
java.util.Vector uninvoicedReceipts,
double value,
boolean byCost,
InvoiceLineRemote invoiceLine,
POLineRemote poline)
A simplified format of findMatch() method.
|
java.util.Vector |
findMatch(boolean exactFirst,
java.util.Vector uninvoicedReceipts,
double minimumSigned,
double maximumSigned,
boolean byCost,
boolean considerTax,
boolean partialAllowed,
InvoiceLineRemote invoiceLine,
POLineRemote poline)
This method implements the algorithm to find one or multiple receipts from a list of
receipts ordered by date in order to have their sum of line cost or qty fall within the
range required.
|
void |
generateAutoKey()
Invoice supports autokeying - sets the INVOICENUM attribute.
|
InvoiceLineSetRemote[] |
getAllocatePrepSets(InvoiceLineSetRemote toBeAllocated,
InvoiceLineSetRemote acceptingLines)
According to the two mbo set passed in and what are selected in those
two sets, this method returns a array of two new sets for the GUI to display.
|
java.util.Vector<MboRemote> |
getAllUninvoicedMatReceipts(java.lang.String poNum,
java.lang.String poLineNum,
java.lang.String siteID,
boolean isNegativeLine,
java.lang.String receiptID)
Get all the uninvoiced material receipts.
|
java.util.Vector<MboRemote> |
getAllUninvoicedReceipts(java.lang.String poNum,
java.lang.String poLineNum,
int receiptType,
java.lang.String siteID,
boolean isNegativeLine,
java.lang.String receiptID)
This method finds a vector of uninvoiced receipts for the PO/POLine ordered by the
receiving date.
|
java.util.Vector<MboRemote> |
getAllUninvoicedServReceipts(java.lang.String poNum,
java.lang.String poLineNum,
java.lang.String siteID,
boolean isNegativeLine,
java.lang.String receiptID)
Get all the uninvoiced service receipts.
|
MboSetRemote |
getCopyPOLineSet(java.lang.String tbName)
This method is to be called by the UI code to get the appropriate poline, material or
service sets to be displayed by the Copy PO Line page.
|
java.lang.String |
getExternalStatus(java.lang.String internalStatus)
From the internal string of the invoice status value, get the external string
of the status.
|
MboSetRemote |
getMboSet(java.lang.String name)
Over-ride the getMboSet method to return a different MboSet if the relationship name is INVOICEPOTERM.
|
java.util.Hashtable<java.lang.String,MboRemote> |
getPOHash()
Used by the poClose method to get the correct po instance for updating from the receipt as
well as the po status handler.
|
MboRemote |
getPOReference() |
java.lang.String |
getProcess()
Return the work flow process for invoice.
|
java.lang.String |
getStatusListName()
Return the name of the value list that contains all the status.
|
long |
getSysCode(int i)
Return sysCode based on the array position.
|
java.lang.String[] |
getValidateOrder()
Override the system method.
|
MboRemote |
getWOReference(java.lang.String wonum)
This method is used to get the workorder reference mbo which will be updated by the receipt.
|
void |
init()
Initialize rountine.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
Called whenever a relationship is initialized or reset from this Mbo to another MboSet.
|
void |
isConditionEnabled(MboSetRemote poLineSet,
boolean copyFromPOLineTab)
This method checks if the poline that is being copied has a condition enabled item.
|
boolean |
isConsignmentInvoice() |
boolean |
isCreditInvoice()
Return true if it's CREDIT invoice or Reverse credit invoice.
|
boolean |
isOrgInvoiceSchedType() |
boolean |
isReverseInvoice() |
boolean |
isSyscodeSet()
Check if fields are set by external user.
|
boolean |
isSyscodeSet(long field)
Check if the field is set by external user.
|
void |
modify()
This is called whenever a change is made to the attributes of invoice.
|
void |
nullVendor()
Throws an exception if the vendor on the invoice header is null.
|
void |
prorateTotalTaxDifference()
Once the taxes have been re-calculated, if a value has been specified for any
of the TOTALTAX attributes on the invoice header, and if there is a difference
between the sum of INVOICELINE.TAX1..5 and the corresponding TOTALTAX1..5, then
the difference needs to be applied to the invoice lines.
|
void |
resetTotalAllocated(InvoiceLineSetRemote lineSet)
Re-calculate the totalallocated fields on invoice based on the passed in invoiceline set.
|
void |
save()
Override the super class save.
|
void |
setCompanyValues() |
void |
setExchangeRateLineCost2()
Calculate and set the exchangerates and the linecost2.
|
void |
setInvoiceMatchReversed()
A utility method called by the status handler when setting the invoice status to REVERSED.
|
void |
setPOHash(PORemote thePO)
Used while creating receipts from invoice to keep track of and use the correct po instance
which will be later used while closing the po.
|
void |
setPOReference(MboRemote poRemote) |
void |
setRelatedMboEditibility(java.lang.String relationName,
MboSetRemote mboSet)
Sets the read/only flag for the related set if the set exists only when the status of the invoice is paid - Issue 10-12042.
|
void |
setRequiredInvoiceTransFields(MboRemote invoiceLine,
MboRemote newInvoiceTrans,
int j)
This method is written just to reduce code and break up one long method.
|
void |
setSyscode(long field)
Set syscode to indicate the field as specified by the parameter is set by external user.
|
void |
setTaxGLs(java.lang.String taxCode,
int typeCode)
Set the tax GL accounts based on the type of the taxcode set on the invoice line.
|
MboSetRemote |
smartFindByObjectName(java.lang.String sourceObj,
java.lang.String targetAttrName,
java.lang.String value,
boolean exact)
Find a set of records of the object of the specified the application
by the specified attribute and values of the current record.
|
boolean |
taxWithinTolerance(double lineTaxTotal,
double totalTax) |
boolean |
toPostDontCheckCompleteFlag(MboRemote thePO,
MboRemote invoiceLine,
MboRemote theReceipt)
Check if all other polines for which receipts have been completed before
posting the message po.DONTCHECKCOMPLETEFLAG on the bulletin board.
|
double |
totalInclusiveTax()
Calculates the total tax based on the inclusive tax flags.
|
void |
updateConsTransInvoiceNum(boolean clearInvoiceNum)
Update the transaction that created this invoice/invoice line with the invoice number.
|
void |
validateAndCompleteAllocation(InvoiceLineSetRemote toBeAllocated,
InvoiceLineSetRemote acceptingLines)
Validate the allocation, if the total to be allocated is different than
the total being allocated, throw an exception.
|
void |
validateForApproval()
Validate the invoice right before approval.
|
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, changeMaxStatus, changeMaxStatus, changeStatus, checkStatusChangeAuthorization, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, 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, 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, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canChangeMaxStatus, canChangeStatus, canChangeStatus, changeMaxStatus, changeMaxStatus, changeStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, 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, 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, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public Invoice(MboSet ms) throws java.rmi.RemoteException
ms
- java.rmi.RemoteException
public java.lang.String getProcess()
public void init() throws MXException
init
in class Mbo
java.rmi.RemoteException
MXException
public void initRelationship(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
initRelationship
in class Mbo
relationName
- the relationship namemboSet
- the mbosetMXException
java.rmi.RemoteException
public void setRelatedMboEditibility(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
setEditibilityFlags()
public void setCompanyValues() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getExternalStatus(java.lang.String internalStatus) throws java.rmi.RemoteException, MXException
inernalstatus
- The status as represented inside MAXIMO. For example APPR, WAPPR, etc;java.rmi.RemoteException
MXException
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class StatefulMbo
public boolean isSyscodeSet(long field) throws MXException, java.rmi.RemoteException
field
- one of the values specified in InvoiceSysCode. It can be:
TOTALCOST,
PRETAXTOTAL,
TOTALTAX1,
TOTALTAX2,
TOTALTAX3,
TOTALTAX4,
TOTALTAX5, and
INVOICELINE.MXException
java.rmi.RemoteException
#InvoiceSysCode
public void setSyscode(long field) throws MXException, java.rmi.RemoteException
field
- one of the values specified in InvoiceSysCode. It can be:
TOTALCOST,
PRETAXTOTAL,
TOTALTAX1,
TOTALTAX2,
TOTALTAX3,
TOTALTAX4,
TOTALTAX5, and
INVOICELINE.MXException
java.rmi.RemoteException
#InvoiceSysCode
public void clearSyscode(long field) throws MXException, java.rmi.RemoteException
field
- one of the values specified in InvoiceSysCode. It can be;
TOTALCOST,
PRETAXTOTAL,
TOTALTAX1,
TOTALTAX2,
TOTALTAX3,
TOTALTAX4,
TOTALTAX5, and
INVOICELINE.MXException
java.rmi.RemoteException
#InvoiceSysCode
public void add() throws MXException, java.rmi.RemoteException
Attribute Name | Attribute Value |
---|---|
basetotalcost | 0.0(zero) |
changeby | Current username |
changedate | Current date |
currencycode | Base currency 1 |
documenttype | INVOICE |
einvoice | No |
enterby | Current username |
enterdate | Current date |
exchangerate | 1(One) |
glpostdate | Current date |
historyflag | No |
inclusive1..5 | No |
invoicenum | Auto Key |
status | ENTERED |
statusdate | Current date |
syscode | 0(Zero) |
totalcost | 0.0(Zero) |
totaltax1..5 | 0.0(Zero) |
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void generateAutoKey() throws java.rmi.RemoteException, MXException
generateAutoKey
in interface MboRemote
generateAutoKey
in class Mbo
MXAccessException
- (access, CantGenAutoKey) Cannot generate auto key.java.rmi.RemoteException
MXException
MboValue.autoKey()
,
MboValue.generateUniqueID()
public void modify() throws MXException, java.rmi.RemoteException
modify
in class Mbo
MXException
java.rmi.RemoteException
public void validateForApproval() throws MXException
MXApplicationException
- (invoice, NoLines) No invoice lines.MXApplicationException
- (invoice, TotalCostZero) Total cost is zero.MXApplicationException
- (invoice, StatusInvalidForApproval) Invalid status.MXApplicationException
- (invoice, InvoiceLineQtyZero) Invoice line quantity is zero.MXApplicationException
- (invoice, InvoiceApproval) Invoice cannot be approved.MXApplicationException
- (financial, GLRequiredForTrans) The debit and credit GL accounts for invoicecosts
require a value.MXException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public void checkForServiceLinePOTolerance() throws MXException, java.rmi.RemoteException
checkForServiceLinePOTolerance
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public void checkForPOLineTolerance() throws MXException, java.rmi.RemoteException
checkForPOLineTolerance
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public void checkForServiceLineTolerance() throws MXException, java.rmi.RemoteException
checkForServiceLineTolerance
in interface InvoiceRemote
MXApplicationException
- (invoice, ExceedServiceTolerance) Exceeds allowed service tolerance.MXApplicationException
- (invoice, LessThanServiceTolerance) Less than allowed service tolerance.MXException
java.rmi.RemoteException
psdi.app.invoice
public void checkForTaxTolerance() throws MXException, java.rmi.RemoteException
checkForTaxTolerance
in interface InvoiceRemote
MXApplicationException
- (invoice, ExceedTaxTolerance) Exceeds allowed tax tolerance.MXApplicationException
- (invoice, LesThanTaxTolerance) Less than allowed tax tolerance.MXException
java.rmi.RemoteException
psdi.app.invoice
public double totalInclusiveTax() throws MXException, java.rmi.RemoteException
totalInclusiveTax
in interface InvoiceRemote
MXException
java.rmi.RemoteException
public void approve() throws MXException
MXException
public void setExchangeRateLineCost2() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void prorateTotalTaxDifference() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void calcIntermediateLoadedCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void createInvoiceTransForTaxes() throws MXException, java.rmi.RemoteException
createInvoiceTransForTaxes
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public void createInvoiceTransTotal() throws MXException, java.rmi.RemoteException
createInvoiceTransTotal
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public void setRequiredInvoiceTransFields(MboRemote invoiceLine, MboRemote newInvoiceTrans, int j) throws MXException, java.rmi.RemoteException
InvoiceLineRemote
- The invoiceline for which this taxline is created.InvoiceTransRemote
- The invoicetrans Mbo which is created for the invoiceline.j
- The counter that is used to increment the tax subscript like tax1....tax5.MXException
java.rmi.RemoteException
public MboRemote createInvoiceForReceipt(MboRemote receipt) throws MXException, java.rmi.RemoteException
createInvoiceForReceipt
in interface InvoiceRemote
receipt
- Receipt which needs an invoice line to be created for.MXException
java.rmi.RemoteException
public void canDelete() throws MXException, java.rmi.RemoteException
canDelete
in class Mbo
MXApplicationException
- (invoice, DeleteIfEnteredOrWappr) Can only delete invoice
with WAPPR or ENTERED status.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 java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo
public java.util.Vector<MboRemote> getAllUninvoicedReceipts(java.lang.String poNum, java.lang.String poLineNum, int receiptType, java.lang.String siteID, boolean isNegativeLine, java.lang.String receiptID) throws MXException, java.rmi.RemoteException
poNum
- PO number for this invoice linepoLineNum
- If specified, the method looks for uninvoiced receipts for this PO-POLine.
If it is null, the method looks for all uninvoiced receipts for this PO.receipttype
- The type of the receipt, it can be Invoice.MATERIAL or Invoice.SERVICE.siteID
- The site identifier.MXException
java.rmi.RemoteException
This vector should be ordered by receipt's transaction date.
public java.util.Vector<MboRemote> getAllUninvoicedMatReceipts(java.lang.String poNum, java.lang.String poLineNum, java.lang.String siteID, boolean isNegativeLine, java.lang.String receiptID) throws MXException, java.rmi.RemoteException
getAllUninvoicedMatReceipts
in interface InvoiceRemote
poNum
- PO number for this invoice linepoLineNum
- The POLine number.siteID
- The site identifier.MXException
java.rmi.RemoteException
#getAllUninvoicedReceipts(String, int)
public java.util.Vector<MboRemote> getAllUninvoicedServReceipts(java.lang.String poNum, java.lang.String poLineNum, java.lang.String siteID, boolean isNegativeLine, java.lang.String receiptID) throws MXException, java.rmi.RemoteException
getAllUninvoicedServReceipts
in interface InvoiceRemote
poNum
- PO number for this invoice linepoLineNum
- The POLine number.siteID
- The site identifier.MXException
java.rmi.RemoteException
#getAllUninvoicedReceipts(String, int)
public java.util.Vector findMatch(boolean exactFirst, java.util.Vector uninvoicedReceipts, double minimumSigned, double maximumSigned, boolean byCost, boolean considerTax, boolean partialAllowed, InvoiceLineRemote invoiceLine, POLineRemote poline) throws MXException, java.rmi.RemoteException
boolean
- True if a receipt of exact to be matched quantity has to be taken if exists.
This needs to be false if it is for the manual matching.Vector
- A vector of uninvoiceReceipts with their uninvoiced cost and qty. The match
will be conducted from those receipts.They have to be ordered by their
transaction date.minimum
- The minimum of the quantity or cost the matched receipts have to have. If it
is a quantity, it should be in issue unit. The minimum should be the minimum of
the absolute value if it is negative. For example, between -5 and -10, -5 should
be assigned to this parameter.maximum
- The maximum of the quantity or cost the matched receipts have to have. If
minimum = maximum, an exact match has to be found. If it is a quantity, it
should be in issue unit. The maximum should be the maximum of
the absolute value if it is negative. For example, between -5 and -10, -10 should
be assigned to this parameter.byCost
- If the match is based on cost or quantity.considerTax
- If considertax is true, when byCost=true, the tax of the receipts will
be contributed to the total cost. This flag is useful only when byCost=true.
It is currently not implemented to consider this flag, since this is only to
be useful by trial match. If trial match is decided to be dropped, we'll remove
this parameter. If not, the function will be modified to consider this parameter
when trial match is being implemented.partialAllowed
- Whether a proportion of receipt can be part of the match to the
invoice line.invoiceLine
- Invoice line to be matched. It is null when invoice line is not involved
such as during trial match.MXException
java.rmi.RemoteException
public java.util.Vector findMatch(boolean exactFirst, java.util.Vector uninvoicedReceipts, double value, boolean byCost, InvoiceLineRemote invoiceLine, POLineRemote poline) throws MXException, java.rmi.RemoteException
findMatch
in interface InvoiceRemote
boolean
- True if a receipt of exact to be matched quantity has to be taken if exists.
This needs to be false if it is for the manual matching.Vector
- A vector of uninvoiceReceipts with their uninvoiced cost and qty. The match
will be conducted from those receipts.They have to be ordered by their
transaction date.value
- The quantity or cost the matched receipts have to have. If it
is a quantity, it should be in issue unit.byCost
- If the match is based on cost or quantity.invoiceLine
- Invoice line to be matched. It is null when invoice line is not involved
such as during trial match.MXException
java.rmi.RemoteException
findMatch(Vector, Vector, double, double, boolean, boolean, boolean, InvoiceLineRemote)
public void confirmMatch(MboRemote invoiceLine, java.util.Vector matchReceipts) throws MXException, java.rmi.RemoteException
confirmMatch
in interface InvoiceRemote
invoiceLine
- The invoice line for which the invoice match is being confirmed.matchReceipt
- A vector of the receipt and the matched qty or cost needs to be updated.MXException
java.rmi.RemoteException
public void createInvoiceTransAfterAppr(MboRemote invoice, double currencyVariance, double priceVariance) throws MXException, java.rmi.RemoteException
createInvoiceTransAfterAppr
in interface InvoiceRemote
invoice
- The MboRemote of the invoice.currencyVariance
- The currency variance.priceVariance
- The price variance.MXException
java.rmi.RemoteException
public void createInvoiceTransAfterAppr(java.lang.String invoicenum, double currencyVariance, double priceVariance) throws MXException, java.rmi.RemoteException
createInvoiceTransAfterAppr
in interface InvoiceRemote
invoice
- The invoicenum of the invoice.currencyVariance
- The currency variance.priceVariance
- The price variance.MXException
java.rmi.RemoteException
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
public MboSetRemote copyPOLineToInvoiceLine(MboSetRemote poLineSet) throws MXException, java.rmi.RemoteException
copyPOLineToInvoiceLine
in interface InvoiceRemote
poLineSet
- The PO Line set from which the invoice lines are to be created.MXException
java.rmi.RemoteException
public void changeStatus(java.lang.String status, java.util.Date date, java.lang.String memo, long accessModifier) throws MXException, java.rmi.RemoteException
changeStatus
in interface StatefulMboRemote
changeStatus
in class StatefulMbo
status
- The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value
), not
the internal status value (valuelist.maxvalue
).date
- The effective date of the new status (java.util.Date
). If null
the current date/time is used.memo
- A string briefly describing the circumstances of the change. The
memo can be null.accessModifier
- A value of NOACCESSCHECK will cause the method not to call canChangeStatus.
Callers using this flag are responsible for ensuring that they are attempting a valid status change.MXException
- Thrown if there is a problem.java.rmi.RemoteException
StatefulMbo.canChangeStatus(String)
public void changeStatus(java.lang.String status, java.util.Date date, java.lang.String memo, boolean autoClosePo) throws MXException, java.rmi.RemoteException
changeStatus
in interface InvoiceRemote
status
- The desired status.date
- The current date.memo
- Any notes by the user.autoClosePO
- Indicates if the PO is to be closed.MXException
java.rmi.RemoteException
public void changeStatus(java.lang.String status, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeStatus
in interface StatefulMboRemote
changeStatus
in class StatefulMbo
status
- The desired status.date
- The current date.memo
- Any notes by the user.MXException
- Thrown if there is a problem, or the status cannot be changed,
as determined by canChangeStatus(String)
.java.rmi.RemoteException
StatefulMbo.changeStatus(String,java.util.Date,String,long)
public double calculateUnInvoicedTotal() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboSetRemote copyReceiptToInvoiceLine(MboSetRemote receiptSet) throws MXException, java.rmi.RemoteException
copyReceiptToInvoiceLine
in interface InvoiceRemote
receiptSet
- The receipt set from which the invoice lines are to be created.MXException
java.rmi.RemoteException
public void canAllocateService() throws MXException, java.rmi.RemoteException
canAllocateService
in interface InvoiceRemote
MXException
java.rmi.RemoteException
canAllocateService()
public InvoiceLineSetRemote[] getAllocatePrepSets(InvoiceLineSetRemote toBeAllocated, InvoiceLineSetRemote acceptingLines) throws MXException, java.rmi.RemoteException
getAllocatePrepSets
in interface InvoiceRemote
toBeAllocated
- InvoiceLine set which should be obtained by relationship
PRORATEYLINES.acceptingLines
- InvoiceLine set which should be obtained by relationship
PRORATENLINES.MXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#getAllocatePrepSets()
public void validateAndCompleteAllocation(InvoiceLineSetRemote toBeAllocated, InvoiceLineSetRemote acceptingLines) throws MXException, java.rmi.RemoteException
validateAndCompleteAllocation
in interface InvoiceRemote
toBeAllocated
- The set contains all the lines which will be allocated.acceptingLines
- The set contains all the line will be accepting allocation.MXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#validateAllocation()
public void allocateServices(InvoiceLineSetRemote toBeAllocated, InvoiceLineSetRemote acceptingLines) throws MXException, java.rmi.RemoteException
allocateServices
in interface InvoiceRemote
toBeAllocated
- The set contains all the lines which will be allocated.acceptingLines
- The set contains all the line will be accepting allocation.MXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#allocateServices()
public void cancelAllocateService() throws MXException, java.rmi.RemoteException
cancelAllocateService
in interface InvoiceRemote
MXException
java.rmi.RemoteException
cancelAllocateService()
public void resetTotalAllocated(InvoiceLineSetRemote lineSet) throws MXException, java.rmi.RemoteException
resetTotalAllocated
in interface InvoiceRemote
lineSet
- should be the set of lines receiving allocated services. When this method
is being called, the previous allocation should have been cleared, and the lineset
contains all the records which are accepting allocated services in this
allocate service process.MXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#resetTotalAllocated()
public MboRemote getPOReference()
public void setPOReference(MboRemote poRemote) throws MXException, java.rmi.RemoteException
setPOReference
in interface InvoiceRemote
MXException
java.rmi.RemoteException
public void checkForOpenStatus() throws MXException, java.rmi.RemoteException
checkForOpenStatus
in interface InvoiceRemote
checkForOpenStatus
in interface StatefulMboRemote
checkForOpenStatus
in class StatefulMbo
MXApplicationException
- (system, historyrecord) is thrown if the record is history
with status of PAID.MXException
java.rmi.RemoteException
StatefulMbo.checkForOpenStatus()
public MboSetRemote getCopyPOLineSet(java.lang.String tbName) throws MXException, java.rmi.RemoteException
getCopyPOLineSet
in interface InvoiceRemote
String
- The UI should pass in the tablename which basically should represent the tab
from where it is called i.e. POLINE, MATRECTRANS or SERVRECTRANS.MXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#getCopyPOLineSet()
public boolean isCreditInvoice() throws MXException, java.rmi.RemoteException
isCreditInvoice
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public void save() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getWOReference(java.lang.String wonum) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setTaxGLs(java.lang.String taxCode, int typeCode) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void copyTerms(MboSetRemote termsSet) throws MXException, java.rmi.RemoteException
copyTerms
in interface InvoiceRemote
termsSet
- the pass in Term Set.MXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#copyTerms()
public MboRemote createInvoiceForPurchSched(MboRemote poLine, MboRemote scheduleLine, MboRemote receipt) throws MXException, java.rmi.RemoteException
createInvoiceForPurchSched
in interface InvoiceRemote
MboRemote
- poLineMboRemote
- scheduleLineMboRemote
- receiptMXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#createInvoiceForPurchSched()
public MboRemote createInvoiceForLabTrans(MboRemote labTrans, double quantity, double lineCost, boolean lineByLine) throws MXException, java.rmi.RemoteException
createInvoiceForLabTrans
in interface InvoiceRemote
MboRemote
- labTransdouble
- quantitydouble
- lineCostboolean
- lineByLineMXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#createInvoiceForLabTrans()
public MboRemote createInvoiceForLeaseSched(MboRemote schedule, double quantity, double lineCost, boolean singleLine) throws MXException, java.rmi.RemoteException
createInvoiceForLeaseSched
in interface InvoiceRemote
MboRemote
- scheduledouble
- quantitydouble
- lineCostboolean
- singleLineMXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#createInvoiceForLeaseSched()
public void copyFromContract(MboRemote contractRemote) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void changeVendorTaxInfo(MboRemote mboRemote) throws MXException, java.rmi.RemoteException
changeVendorTaxInfo
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#changeVendorTaxInfo()
public void nullVendor() throws MXException, java.rmi.RemoteException
nullVendor
in interface InvoiceRemote
MXApplicationException("invoice",
- "VendorIsNull");MXException
java.rmi.RemoteException
nullVendor()
public MboRemote createInvoiceForWarrSched(MboRemote schedule, double quantity, double lineCost) throws MXException, java.rmi.RemoteException
createInvoiceForWarrSched
in interface InvoiceRemote
MboRemote
- scheduledouble
- quantitydouble
- lineCostMXException
java.rmi.RemoteException
psdi.app.invoice.Invoice#createInvoiceForWarrSched()
public MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
getMboSet
in interface MboRemote
getMboSet
in class Mbo
name
- The relationship provided to retrieve a
related mboSet, usually using foreign keys.
For example,
"psdi.app.workorder.WOSetRemote.ASSET" is
a relationship for the work order object to
access the asset Set where
"workorder.assetnum=asset.assetnum". The relationship can
also be chained. Such as ASSET.ASSETSTATUS.MXException
- "A relationship called {0} does not exist
for the {1} business object" exception
will be thrown if the relationship was not
found.
"Unknown Object" exception will be thrown
if the database object can not be
found through the relationship.java.rmi.RemoteException
Mbo.getMboSet(String)
public void checkAndClearAllocatedLines() throws MXException, java.rmi.RemoteException
checkAndClearAllocatedLines
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public void canCopyPOLines() throws MXException, java.rmi.RemoteException
canCopyPOLines
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public java.util.Hashtable<java.lang.String,MboRemote> getPOHash()
public void setPOHash(PORemote thePO) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void isConditionEnabled(MboSetRemote poLineSet, boolean copyFromPOLineTab) throws MXException, java.rmi.RemoteException
isConditionEnabled
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public MboSetRemote smartFindByObjectName(java.lang.String sourceObj, java.lang.String targetAttrName, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFindByObjectName
in interface MboRemote
smartFindByObjectName
in class Mbo
MXException
java.rmi.RemoteException
psdi.mbo.Mbo#smartFindByObjectName()
public void canReverseInvoice() throws MXException, java.rmi.RemoteException
canReverseInvoice
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public void createReverseInvoice(java.lang.String status) throws java.rmi.RemoteException, MXException
createReverseInvoice
in interface InvoiceAppActionInterface
java.rmi.RemoteException
MXException
public void createReverseInvoice(java.lang.String invoiceNum, java.lang.String description, java.lang.String revReason, java.util.Date glPostdate, java.lang.String status) throws MXException, java.rmi.RemoteException
createReverseInvoice
in interface InvoiceRemote
invoiceNum
- Reverse invoice numberdescription
- Reverse invoice number descriptionrevReason
- Reason for reverseglPostdate
- GL post date of the reverse invoicestatus
- status of the reverse invoiceMXException
java.rmi.RemoteException
psdi.app.invoice
public void canDeleteAttachedDocs() throws MXException, java.rmi.RemoteException
canDeleteAttachedDocs
in interface StatefulMboRemote
canDeleteAttachedDocs
in class StatefulMbo
MXException
java.rmi.RemoteException
StatefulMbo.canDeleteAttachedDocs()
public void canDuplicateInvoice() throws MXException, java.rmi.RemoteException
canDuplicateInvoice
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public void canChangeVendor() throws MXException, java.rmi.RemoteException
canChangeVendor
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public boolean isReverseInvoice() throws MXException, java.rmi.RemoteException
isReverseInvoice
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public long[] defineSysCode() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public long getSysCode(int i) throws MXException, java.rmi.RemoteException
integer
- - array positionMXException
java.rmi.RemoteException
public boolean isSyscodeSet() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
#InvoiceSysCode
public void setInvoiceMatchReversed() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void createInvoiceLineForCons(MboSetRemote transSet) throws MXException, java.rmi.RemoteException
createInvoiceLineForCons
in interface InvoiceRemote
transSet
- MXException
java.rmi.RemoteException
psdi.app.invoice
public void createInvoiceLineForCons(java.util.ArrayList consTransByVendorList) throws MXException, java.rmi.RemoteException
createInvoiceLineForCons
in interface InvoiceRemote
consTransByVendorList
- MXException
java.rmi.RemoteException
psdi.app.invoice
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 createVarTransForConInvoice() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isConsignmentInvoice() throws MXException, java.rmi.RemoteException
isConsignmentInvoice
in interface InvoiceRemote
MXException
java.rmi.RemoteException
psdi.app.invoice
public boolean isOrgInvoiceSchedType() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean toPostDontCheckCompleteFlag(MboRemote thePO, MboRemote invoiceLine, MboRemote theReceipt) throws MXException, java.rmi.RemoteException
thePO
- invoiceLine
- theReceipt
- MXException
java.rmi.RemoteException
public boolean taxWithinTolerance(double lineTaxTotal, double totalTax) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException