Modifier and Type | Method and Description |
---|---|
void |
addPercentage(IItemPercentage itemPercentage)
Deprecated.
|
void |
addSource(IItemRelation relation)
Deprecated.
Adds a related item with this item as the source.
|
void |
addTarget(IItemRelation relation)
Deprecated.
Adds a related item with this item as the target.
|
java.lang.String |
getCode()
Deprecated.
|
IConcept |
getConcept()
Deprecated.
|
java.lang.String |
getDescriptionSR()
Deprecated.
|
org.sistema.cs.agenda.IAgendaEntry |
getEntry()
Deprecated.
|
java.lang.String |
getNotes()
Deprecated.
Retrieves the notes of the item.
|
IDocumentItem |
getParent(byte index)
Deprecated.
|
java.util.Collection<IDocumentItem> |
getParents()
Deprecated.
|
IDocumentItem |
getParentType(byte typeId)
Deprecated.
|
IItemPercentage |
getPercentage(byte typeId)
Deprecated.
Retrieves an
ItemPercentage by type. |
java.math.BigDecimal |
getPercentageAmount(java.lang.Integer filterId,
java.math.BigDecimal docSubtotal,
java.math.BigDecimal runningSum)
Deprecated.
|
java.math.BigDecimal |
getPercentageAmount(java.lang.Integer filterId,
java.math.BigDecimal filterRate,
java.math.BigDecimal docSubtotal,
java.math.BigDecimal runningSum)
Deprecated.
Calculates the amount of a percentage type applied to an item at certain rate.
|
java.util.Collection<IItemPercentage> |
getPercentages()
Deprecated.
|
java.math.BigDecimal |
getPrice()
Deprecated.
|
java.math.BigDecimal |
getQuantity()
Deprecated.
Retrieves the quantity of the item.
|
java.util.Collection<IDocumentItem> |
getRelatedDocs()
Deprecated.
Retrieves all documents related to this item.
|
IItemRelation |
getRelatedItem(java.lang.Integer id)
Deprecated.
Retrieves a related item relationship by its unique identifier.
|
java.util.Collection<IItemRelation> |
getRelatedItems()
Deprecated.
Retrieves all related items-relationships of this item.
|
java.math.BigDecimal |
getSubtotal()
Deprecated.
Calculates the subtotal based on the price and a quantity of the item.
|
java.math.BigDecimal |
getTotal()
Deprecated.
Calculates the total of the item defined as its value after applying percentages.
|
void |
remove(IItemRelation relation)
Deprecated.
Removes a related item.
|
void |
removePercentage(IItemPercentage itemPercentage)
Deprecated.
Removes a percentage from this item.
|
void |
setConcept(IConcept concept)
Deprecated.
Sets the concept of this item.
|
void |
setId(java.lang.Integer id)
Deprecated.
|
void |
setNotes(java.lang.String notes)
Deprecated.
Sets the notes of this item.
|
void |
setParent(IDocument parent)
Deprecated.
|
void |
setPrice(java.math.BigDecimal price)
Deprecated.
Sets the unit price.
|
void |
setQuantity(java.math.BigDecimal quantity)
Deprecated.
Sets the quantity of this item.
|
void |
setRelatedDocs(java.util.Collection<IDocumentItem> docItems)
Deprecated.
Sets documents related to this item.
|
void addSource(IItemRelation relation)
relation
- A relationship in which this item is the source.void addTarget(IItemRelation relation)
relation
- A relationship in which this item is the target.void addPercentage(IItemPercentage itemPercentage)
itemPercentage
- java.lang.String getCode()
IConcept getConcept()
java.lang.String getDescriptionSR()
org.sistema.cs.agenda.IAgendaEntry getEntry()
java.lang.String getNotes()
IDocumentItem getParent(byte index)
index
- IDocumentItem
IDocumentItem getParentType(byte typeId)
typeId
- IDocumentItem
java.util.Collection<IDocumentItem> getParents()
IItemPercentage getPercentage(byte typeId)
ItemPercentage
by type.typeId
- Type of the ItemPercentage
type being requested.java.math.BigDecimal getPercentageAmount(java.lang.Integer filterId, java.math.BigDecimal filterRate, java.math.BigDecimal docSubtotal, java.math.BigDecimal runningSum)
filterId
- filterRate
- docSubtotal
- runningSum
- java.math.BigDecimal getPercentageAmount(java.lang.Integer filterId, java.math.BigDecimal docSubtotal, java.math.BigDecimal runningSum)
filterId
- docSubtotal
- runningSum
- java.util.Collection<IItemPercentage> getPercentages()
java.math.BigDecimal getPrice()
java.math.BigDecimal getQuantity()
IItemRelation getRelatedItem(java.lang.Integer id)
id
- Identifier of the relation wanted.java.util.Collection<IDocumentItem> getRelatedDocs()
In other words, all document-item relationships in which this item is the child.
java.util.Collection<IItemRelation> getRelatedItems()
IItemRelation
s set on this item.java.math.BigDecimal getSubtotal()
java.math.BigDecimal getTotal()
void remove(IItemRelation relation)
relation
- Item relationship to be removed.void removePercentage(IItemPercentage itemPercentage)
itemPercentage
- Percentage to be removed.void setConcept(IConcept concept)
concept
- Concept of this item.void setId(java.lang.Integer id)
void setNotes(java.lang.String notes)
notes
- Some notes.void setParent(IDocument parent)
parent
- void setPrice(java.math.BigDecimal price)
price
- Unit price of this item.void setQuantity(java.math.BigDecimal quantity)
quantity
- Quantity of this item.void setRelatedDocs(java.util.Collection<IDocumentItem> docItems)
docItems
- Collection of document-item relationships.