|
ParentChildRelationships
Parent-Child Relationships
Deprecated SummaryProvide the ability to assign parent/child relationships between assets in Tracmor. Owner
Current Status
Details
Use CaseAmelia uses Tracmor to manage the IT assets (such as computers) at her company. A computer may have components such as a hard drive, memory module, and video card that are also being managed as assets in Tracmor. Amelia would like to make an association between the computer (parent) and its components (children) within Tracmor so that she knows which components are in each computer. She would also like the option to easily include child assets in transactions that are performed on their parent. ImplementationThis feature will allow the user to create parent-child relationships from either the parent or the child asset record. Assigning a parent from the child assetA new Parent Asset field will be added to asset records. Users with edit permissions can enter an asset code (or search for an asset using a pop-up search dialog) in this field to assign a parent to the asset. An asset in Tracmor may have only one parent, but a parent may have multiple children. Child assets may also be parents. Assigning children from the parent assetA new section titled Child Assets will be added to asset records. Users with edit permissions will be able to add children using a text input (or search using pop-up search dialog) and Add button. Children will be listed in this section with checkboxes, and users with edit permissions can select one or more children using these checkboxes and perform the following actions on the selected children:
Locking children to the parentWhen a child is locked to its parent, it will be automatically included in transactions and audits performed on its parent. In order to be locked to its parent, the child asset must be in the same location as the parent asset, and both the parent and the child must not be currently Checked Out, Pending Shipment, Shipped/TBR, or Reserved. When an asset with locked children is added to a transaction, the user should be notified of this with a message stating "The following asset(s) have been added to the transaction because they are locked to asset [Asset Code]: ... ". Note that inclusion of locked children should cascade to all locked grandchildren as well (imposing no limit on the levels of nesting allowed). In the example below, assuming all children are locked to their parent, adding the Crate to a transaction would notify the user of 11 child assets being added to the transaction:
When attempting to perform a transaction on an asset with locked children, Tracmor must check that the user has permissions to perform this transaction on all the child asset(s) before allowing the transaction. User ExperienceMockup #1 - Asset with 1 parent and 1 locked child
Mockup #2 - Editing asset with 1 parent and 1 locked child
|
yes, this works out.
I have few questions on the transactions part.
When a Parent Asset is moved to some location, then all the children assets also will have the same transaction. Now. Can we move(or any other transaction) on any one of Child Asset to other location? Then how will you relate it to parent transactions. this is a confusing part.
-Sreeni.A
http://www.google.co.in/url?sa=t&source=web&ct=res&cd=1&url=http%3A%2F%2Fwww.phpro.org%2Ftutorials%2FManaging-Hierarchical-Data-with-PHP-and-MySQL.html&ei=a9CrSZ30Eom9kAWBttTIDQ&usg=AFQjCNGDlNEx1PqbE6KTuneiyz4nbMd1Mw&sig2=_VfC_hx-1HcPS9vHgifwhQ
I think to maitain multilevel childs logic, we need to implement above algorithm
-Sreeni.A
To answer your question regarding transactions on child assets, see the section "Linking children to the parent". It describes how child assets can be transacted upon independent of their parent as long as they are not "linked" to their parent. (We may be changing the term "linked" to "locked" to distinguish better between the standard link between a parent and child).
hi, I worked on above requirement. I could do till adding, editing, a parent asset. not at transaction levels. If I get more help on the code structure i can contribute more.
I would like join as a developer to contribute more on this. Please let me know, the procedure.
-Sreeni.A
Thank you for your interest in contributing as a developer to Tracmor. Please visit the Tracmor forums at http://www.tracmor.com/forum and post to the Developer forum requesting information on contributing to Tracmor, and we will respond there.