Class InventoryVirtualLocation
- All Implemented Interfaces:
Displayable
,StringFiller
,HasChildren
,HasId
- Author:
- Syam
-
Field Summary
Fields inherited from class com.storedobject.core.StoredObject
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
static void
getCode()
static InventoryVirtualLocation
getConsumptionLocation
(SystemEntity systemEntity) static InventoryVirtualLocation
getForConsumer
(Id consumerId) static InventoryVirtualLocation
getForExternalOwner
(Id ownerId) static InventoryVirtualLocation
getForLoanFrom
(Id lenderId) static InventoryVirtualLocation
getForLoanTo
(Id loaneeId) static InventoryVirtualLocation
getForRepairOrganization
(Id supplierId) static InventoryVirtualLocation
getForSupplier
(Id supplierId) static InventoryVirtualLocation
static InventoryVirtualLocation
getScrapLocation
(SystemEntity systemEntity) static InventoryVirtualLocation
getShortageLocation
(SystemEntity systemEntity) int
static String
getStatusValue
(int value) static String[]
int
getType()
Get the type of this location.static void
boolean
isActive()
static String[]
links()
static String[]
void
void
void
void
setEntity
(BigDecimal idValue) void
setStatus
(int status) void
setType
(int type) Display representation of the instance used for human-friendly display.toString()
String representation of the instance.void
validateChildAttach
(StoredObject child, int linkType) Do validation when a child is attached.void
This will be invoked by the system whenever the object is saved to the DB.Methods inherited from class com.storedobject.core.InventoryLocation
canBin, canBin, canResurrect, canStore, displayColumns, getCategoryId, getIssueText, getName, getReceiptText, getReturnPolicy, getReturnPolicyValue, getReturnPolicyValue, getReturnPolicyValues, getTypeValue, getTypeValue, getTypeValues, isInspectionRequired, isScrapAllowed, setCategory, setName, setReturnPolicy, validate
Methods inherited from class com.storedobject.core.StoredObject
addLink, addLink, addLink, addLink, addLink, addLink, addLink, addLink, checkCurrency, checkCurrency, checkForDuplicate, checkForDuplicate, checkTimeZone, checkTransaction, clearObjectLinks, contemporary, copy, copy, count, count, count, count, count, count, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, create, created, delete, delete, delete, deleted, directUpdate, equals, exists, exists, exists, exists, exists, existsFileData, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsMaster, existsMaster, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, family, family, family, fill, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAttachment, getAttachmentId, getChildren, getDeleted, getDeleted, getExistsCondition, getExistsCondition, getFileData, getFileData, getHistorical, getId, getKeyIndex, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getNotExistsCondition, getNotExistsCondition, getParent, getParent, getParent, getParentId, getParentId, getParentId, getRelated, getRelated, getTransaction, getTransactionId, getTransactionIP, getUnique, getUniqueCondition, hashCode, inserted, isModified, isVirtual, list, list, list, list, list, list, list, list, list, list, list, list, list, listFileData, listFileData, listHistory, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listTree, listTree, listTree, listTree, listViaQuery, listViaQuery, load, load, load, load, loaded, loading, makeNew, makeVirtual, migrate, moduleName, nextVersion, objectLink, objectLink, objectLink, objectLinks, objectLinks, old, person, previousVersion, previousVersion, query, query, query, query, query, query, query, query, query, query, query, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, reload, reload, reloaded, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeReverseLinks, removeReverseLinks, save, save, save, save, save, save, save, save, save, save, save, save, save, save, saved, saving, setMaster, setRawValue, setTransaction, stringify, tableName, timestamp, toCode, transacting, undelete, undelete, undeleted, updated, user, userId, validateChildDetach, validateChildUpdate, validateDelete, validateInsert, validateParentAttach, validateParentDetach, validateParentUpdate, validateUndelete, validateUpdate, valueEquals
-
Constructor Details
-
InventoryVirtualLocation
public InventoryVirtualLocation()
-
-
Method Details
-
columns
-
indices
-
browseColumns
-
protectedColumns
-
links
-
setEntity
-
setEntity
-
setEntity
-
getEntityId
- Specified by:
getEntityId
in classInventoryLocation
-
getEntity
-
getType
Description copied from class:InventoryLocation
Get the type of this location. Location type values are as follows:0: Inventory store bins
InventoryBin
1: Supplier locations (purchase of items are coming from supplier locations)
2: Consumer/customer locations (items sold to a customer go here)
3: Repair/Maintenance organization (items sent for repair or maintenance work will be located here)
4: Production unit
5: Maintenance unit (within the organization)
6: Scrap
7: Inventory shortage is booked here
8: Rented/Loaned out to (an outside organization)
9: Rented/Leased from (an outside organization)
10: Service Unit or Work Centers (providing services to external customers)
11: Repair unit (within the organization)
12: Initial inventory (used as a source for data pick-up)
13: Service/Subscription
14: Assembly (fitment positions on assembled items)
InventoryFitmentPosition
15: Thrash - used for keeping items that were entered with incorrect details
16: Internal consumption (Consume the item internally - typically consumables)
17: External owner (Can receive stock from these locations but the ownership is still theirs)
18: Custody (In the custody of someone. Mostly used for tools)
19: Packaged (Packaged in a package for sending it out)
20: Fixed asset
- Specified by:
getType
in classInventoryLocation
- Returns:
- Location type.
-
setType
public void setType(int type) -
setCode
-
getCode
-
setStatus
public void setStatus(int status) -
getStatus
-
getStatusValues
-
getStatusValue
-
getStatusValue
-
validateData
Description copied from class:StoredObject
This will be invoked by the system whenever the object is saved to the DB. It will be invoked in all cases, while creating new objects and updating/deleting/un-deleting existing objects. If any exception is raised by this method, the process of saving to the DB will be abandoned.
Note: This method is mainly used to validate the data of all attributes of the object, and it may be used by others for validating the object. For example, front-end data-entry systems can use this method for validating the object.
- Overrides:
validateData
in classInventoryLocation
- Parameters:
tm
- Current transaction manager.- Throws:
Exception
- If data is invalid.
-
toString
Description copied from class:StoredObject
String representation of the instance. Mostly used for logging purposes.- Overrides:
toString
in classInventoryLocation
- Returns:
- String representation of the instance.
-
toDisplay
Description copied from class:StoredObject
Display representation of the instance used for human-friendly display.- Specified by:
toDisplay
in interfaceDisplayable
- Overrides:
toDisplay
in classStoredObject
- Returns:
- Display representation of the instance.
-
getForExternalOwner
-
getForLoanFrom
-
getForLoanTo
-
getForSupplier
-
getForRepairOrganization
-
getForConsumer
-
getScrapLocation
-
getShortageLocation
-
getConsumptionLocation
-
getRecycleLocation
-
validateChildAttach
Description copied from class:StoredObject
Do validation when a child is attached.Note: This method will be invoked only if this class implements
HasChildren
.- Overrides:
validateChildAttach
in classStoredObject
- Parameters:
child
- Child to validate.linkType
- Link type.- Throws:
Exception
- By raising an exception from this method the current transaction can be abandoned.
-
isActive
public boolean isActive()- Overrides:
isActive
in classInventoryLocation
-