public class ReceiptMbo extends Mbo implements ReceiptMboRemote
Modifier and Type | Field and Description |
---|---|
boolean |
invoiceLineCreated
10-16171: if Invoice Line already created for this receipt and
save() is called again, should not create a new invoice line
|
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 |
---|
ReceiptMbo(MboSet ms) |
Modifier and Type | Method and Description |
---|---|
void |
approve(java.util.Date approveDate)
This remote method performs the approval of a receipt.
|
void |
approveInvoices()
Approves all the newly generated invoices whose references are stored in
the poInvoice hashtable.
|
void |
appValidate()
Application validation routine called before the receipt object is saved.
|
void |
createChildMatServLines()
Creates the child MATRECTRANS or SERVRECTRANS records when a new PONUM and POLineNum is entered on the receipt UI.
|
void |
createInvoicesForSchedule()
Create invoices for payment schedules.
|
void |
delete(long accessmodifier)
10-17510/10-16749: this handles: after there was an exception and the receipt has
updated other objects but this receipt is being deleted after error is cleared
|
void |
deleteChildReceipts()
Common method to be used by matrectrans and servrectrans to delete the child servrectrans or matrectrans, which were created
earlier created when entering a new ponum and polinenum on the matrec or the servrec line.On clearing either the
ponum or the polinenum, the additionally created children must be deleted from memory.
|
void |
doChargeStore()
Handles the Charge Store requirement.
|
MboRemote |
getFirstCourierTransOut() |
PORemote |
getPO()
Returns poMbo if it has been set.
|
MboRemote |
getPOCostReference()
10-16483
|
POLineRemote |
getPOLine()
Returns PoLineMbo if it has been set.
|
PORemote |
getPOReference()
Get the PO reference.
|
double |
getQtyStillInTransitForTransOut()
12-14129/IV26079:get all the qty still held by courier for the internal po - not received by the other storeroom yet.
|
double |
getRemainingCurrencyLineCost() |
double |
getRemainingInvoiceCurrencyLineCost() |
double |
getRemainingInvoiceQty()
Calculates the quantity that is yet to be received on either the MATRECTRANS or the SERVRECTRANS Mbo
|
double |
getRemainingQty()
Calculates the quantity that is yet to be received on either the MATRECTRANS or the SERVRECTRANS Mbo
|
double |
getRemainingQtyTransInTransit()
10-16065: get remaining ellible quantity for transfer-in based
on a transfer-out
|
double |
getRemainingShipmentQty(MboRemote mbo) |
MboRemote |
getWOReference()
Get the workorder reference.
|
boolean |
isLastReceipt()
If the running total is now greater than the current mboSet's count,
then it returns true to indicate that this receipt is the last receipt;
false otherwise.
|
void |
payOnReceipt()
This method handles the payment on Receipt requirement
when a receipt is created.
|
void |
receiptDetails()
Common fields copied to MatRecTrans and ServRecTrans from
the poLineMbo.
|
POLineRemote |
refetchPOLine()
Return poline after refetching from the database.
|
void |
setMRMbo(MRRemote mr)
Sets MR object.
|
void |
setPOCostReference(MboRemote poCost)
10-16483
|
void |
setPOLineMbo(POLineRemote poLine)
Sets POLine object.
|
void |
setPOLineSet(POLineSetRemote poLineSet)
Sets POLineSet object.
|
void |
setPOMbo(PORemote po)
Sets PO object.
|
void |
setPOReference(PORemote poRef)
Used by invoice line to set the PO reference when it is creating receipts.
|
void |
setWOReference(MboRemote woRemote)
Used by invoice to set the workorder reference when it has to be updated.
|
void |
undelete()
10-17510/10-16749: this handles: after there was an exception and the receipt has
updated other objects but this receipt is being deleted after error is cleared
and undeleted()
|
void |
updateMR(MboRemote poline)
Updates MRLINE status.
|
boolean |
useIntegration(MboRemote mbo,
java.lang.String code)
Public method for convenience of MAXCOLLAB calls.
|
java.lang.String |
useLineOrLoadedCost()
11-16657/IV09276: added maxvars RECEIPLINEORLOADED to determine if receipt should use linecost or
loadedcost to update POLine.receivedtotalcost.
|
add, addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, 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, 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, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, init, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, 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, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, 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
add, addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, 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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
public boolean invoiceLineCreated
public ReceiptMbo(MboSet ms) 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 PORemote getPO() throws MXException, java.rmi.RemoteException
getPO
in interface ReceiptMboRemote
MXException
java.rmi.RemoteException
public POLineRemote refetchPOLine() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public POLineRemote getPOLine() throws MXException, java.rmi.RemoteException
getPOLine
in interface ReceiptMboRemote
MXException
java.rmi.RemoteException
public void receiptDetails() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getRemainingShipmentQty(MboRemote mbo) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getRemainingQty() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getRemainingCurrencyLineCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getRemainingInvoiceQty() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getRemainingInvoiceCurrencyLineCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void payOnReceipt() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void approveInvoices() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void updateMR(MboRemote poline) throws MXException, java.rmi.RemoteException
poline
- a poline objectMXException
java.rmi.RemoteException
public void doChargeStore() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
POLine.updateWOAssetOnReceipt(double)
public void approve(java.util.Date approveDate) throws MXException, java.rmi.RemoteException
approve
in interface ReceiptMboRemote
approveDate
- the approval dateMXException
java.rmi.RemoteException
approve(Date)
public void setPOMbo(PORemote po) throws java.rmi.RemoteException
setPOMbo
in interface ReceiptMboRemote
po
- the PO object that the user wants to setjava.rmi.RemoteException
setPOMbo(PORemote)
public void setPOLineMbo(POLineRemote poLine) throws java.rmi.RemoteException
setPOLineMbo
in interface ReceiptMboRemote
poLine
- the POLine object that the user wants to setjava.rmi.RemoteException
setPOLineMbo(POLineRemote)
public void setMRMbo(MRRemote mr) throws java.rmi.RemoteException
setMRMbo
in interface ReceiptMboRemote
mr
- the MR object that the user wants to setjava.rmi.RemoteException
setMRMbo(MRRemote)
public void setPOLineSet(POLineSetRemote poLineSet) throws java.rmi.RemoteException
setPOLineSet
in interface ReceiptMboRemote
poLineSet
- the POLineSet object that the user wants to setjava.rmi.RemoteException
setPOLineSet(POLineSetRemote)
public boolean isLastReceipt() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
ReceiptMboSet.getCurrentReceiptCount()
public boolean useIntegration(MboRemote mbo, java.lang.String code) throws MXException, java.rmi.RemoteException
mbo
- a mbo objectcode
- the codeMXException
java.rmi.RemoteException
public void createChildMatServLines() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void deleteChildReceipts() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getWOReference() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setWOReference(MboRemote woRemote) throws MXException, java.rmi.RemoteException
setWOReference
in interface ReceiptMboRemote
MXException
java.rmi.RemoteException
setWOReference(MboRemote)
public void createInvoicesForSchedule() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public PORemote getPOReference() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setPOReference(PORemote poRef) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setPOCostReference(MboRemote poCost) throws MXException, java.rmi.RemoteException
poCost
- MXException
java.rmi.RemoteException
public MboRemote getPOCostReference() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getRemainingQtyTransInTransit() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void delete(long accessmodifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessmodifier
- The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXException
java.rmi.RemoteException
Mbo.delete(long)
public void undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public java.lang.String useLineOrLoadedCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getQtyStillInTransitForTransOut() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getFirstCourierTransOut() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException