Class SalesItemNode
Its
instances should never exist independently, instead they should always be a
child of either the SalesItemsTree or another SalesItemNode
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachmentFile(InputStream attachmentStream, String fileName, long fileSize, String attachmentType) Adds the attachment file as line item attachmentaddChildByProductErpId(String productErpId) Adds a new line item under this object by specifying its ERP ID.addChildByProductURI(String productURI) Adds a new line item under this object by specifying its Product URI.addNewBusinessObjectData(BusinessObjectDataDTO businessObjectDataDTO) Create businessAttribute data and assign it to salesItemaddNewPriceItem(PriceItemData priceItemData) Create and Add Price Item data to salesItem, without triggering SSC pricing.addPartnerFunctions(Collection<PartnerFunctionRecord> partnerFunctionRecords) Add partner function records into salesItem's Partner Function.voidchangeName(String newName) Alters the name of this line itemvoidchangeParent(SalesItemNode newParent) Moves this line item to be under a different line itemvoidchangeParent(SalesItemsTree newParent) Moves this line item to be directly under the quotevoidchangeQuantity(BigDecimal newQty) Alters the quantity of this line itemcopy()Copies the current line item.voiddelete()Deletes the current line item and all of its descendant nodesvoiddeleteLineItemAttachment(BusinessObject[] attachmentIds) Delete multiple Line Item AttachmentsdeletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords) Remove partner function records into SalesItem's Partner Function.deletePriceItem(PriceItemData priceItem) Remove Price Item data from salesItem, without triggering SSC pricing.filterChildrenByDynamicAttribute(String dynamicAttributeName, Object dynamicAttributeValue) Retrieves the list of child line items that has dynamic attribute of a specific valuefilterChildrenByDynamicAttribute(String dynamicAttributeName, List<Object> dynamicAttributeValues) Retrieves the list of child line items that has dynamic attribute of one of the specified valuesfilterChildrenByProductERPID(List<String> productERPIDs) Retrieves the list of child line items that has one of the specified ERP IDs.filterChildrenByProductName(List<String> productNames) Retrieves the list of child line items that has one of the specified objectNamefilterChildrenByProductType(String productTypeURI) Retrieves the list of child line items that belongs to a particular Product Type onlygetAttachmentFile(String fileName) Get a attachment file by file name.Get the list of the attachment file.getAttachmentFilesByType(String fileType) Get the list of the attachment file by file type.getAttachmentFolder(String folderName) Get an attachment folder by folder name.Get the list of the attachment folder.Retrieves the list of all line items directly under this objectgetDynamicAttribute(String dynamicAttributeName) Retrieves the value of a dynamic attribute of this line itemRetrieves all dynamic attributes for a configurable or classified line item.To get the google map data.getItemHeaderDataAttributeValue(String attributeURI) To get the value of the Item Header Price ItemgetNewMaterialItemDataAttributeValue(String attributeURI) To get the value of the New Material Item * @param attributeURI as String the URI of the NewMaterialItem attributegetNewMaterialItemRelAttributeObjectERPId(String attributeURI) To get the objectERPId value of the New Material Item * @param attributeURI as String the URI of the NewMaterialItem attributegetNewMaterialItemRelAttributeObjectURI(String attributeURI) To get the URI value of the New Material Item * @param attributeURI as String the URI of the NewMaterialItem attributeRetrieves the object name of this line itemRetrieves the parent of this line itemgetPartnerErpId(String partnerFunctionURI) To get the ERPId of the partner function by partner function URI.getPartnerObjectId(String partnerFunctionURI) To get the object Id of the partner function by partner function URI.getPartnerObjectName(String partnerFunctionURI) To get the object Name of the partner function by partner function URI.Retrieves the partner function of the line itemgetPartnersErpId(String partnerFunctionURI) To get all the ERPId for a type of partner function.getPartnersObjectId(String partnerFunctionURI) To get all the object Id for a type of partner function.getPartnersObjectName(String partnerFunctionURI) To get all the object names for a type of partner function.getPartnersURI(String PartnerFunctionURI) To get all the object URI for a type of partner function.getPartnerURI(String PartnerFunctionURI) To get all the object URI for a type of partner function.getPriceItemByTypeName(String name) To get the price Item data by name.To get the price Item data by price item type URI.getPriceItemByUri(String uri) To get the price Item data by price item URI.To get all the price Item data by the name of the price item type.To get all the price Item data by the URI of the price item type .getPriceItemsJustified(String justificationURI) To get all justified price Item data.To get all product comments.Retrieves the ERP ID of this line itemRetrieves the product name of this line itemRetrieves the product type ERPID of this line itemRetrieves the product type URI of this line itemRetrieves the product URI of this line itemRetrieves the quantity of this line itemgetSalesItemDataAttributeValue(String attributeURI) Return salesItem data attribute value by the attribute urigetSalesItemRelationAttributeErpId(String attributeURI) Return salesItem relation attribute's ERPID by the attribute urigetSalesItemRelationAttributeObjectId(String attributeURI) Return salesItem relation attribute's objectID by the attribute urigetSalesItemRelationAttributeObjectName(String attributeURI) Return salesItem relation attribute's objectName by the attribute urigetSalesItemRelationAttributeURI(String attributeURI) Return salesItem relation attribute's URI by the attribute uriRetrieves the object URI of sales item of this line itembooleanhasDynamicAttribute(String dynamicAttributeName) Checks if this line item has a particular dynamic attributesetDataAttribute(String attributeURI, Object value) Set the immediate data attribute to SalesItemvoidsetDynamicAttribute(String dynamicAttributeName, Object dynamicAttributeValue) Sets the value of a dynamic attribute of this line item.voidsetDynamicAttributeIfExist(String dynamicAttributeName, Object dynamicAttributeValue) Sets the value of a dynamic attribute of this line item.voidsetGeojson(String geojson) Set the google map data for the salesItemvoidsetItemHeaderData(String attributeURI, Object value) To set item header price item.setPriceItemByTypeName(String priceItemTypeName, BigDecimal baseAmount) Create or Update price item with baseAmount only.setRelationAttribute(String attributeURI, String valueURI) Set the immediate relation attribute to SalesItemsplit(BigDecimal splitQuantity) Splits the line item based on the given quantity.updatePriceItemBaseAmount(String priceItemURI, BigDecimal baseAmount) Update BaseAmount with targetCurrency of a Price ItemupdatePriceItemBaseCurrency(String priceItemURI, String baseCurrencyUri) Update baseCurrencyUri of a Price ItemupdatePriceItemBaseQuantity(String priceItemURI, BigDecimal baseQuantity) Update BaseQuantity with UoM of a Price ItemupdatePriceItemBaseUnitUoM(String priceItemURI, String baseUnitUoMUri, String baseUnitUoMName) Update baseUnitUoMUri and baseUnitUoMName of a Price ItemupdatePriceItemConditionIsInactive(String priceItemURI, boolean conditionIsInactive) Update sequence of a Price ItemupdatePriceItemJustification(String priceItemURI, String uri) Update Justification of a Price ItemupdatePriceItemSequence(String priceItemURI, int sequenceID) Update sequence of a Price ItemupdatePriceItemTargetAmount(String priceItemURI, BigDecimal targetAmount) Update TargetAmount of a Price ItemupdatePriceItemTargetCurrency(String priceItemURI, String targetCurrencyUri) Update TargetCurrency of a Price Item
-
Method Details
-
addAttachmentFile
public void addAttachmentFile(InputStream attachmentStream, String fileName, long fileSize, String attachmentType) throws IMCException Adds the attachment file as line item attachment- Parameters:
attachmentStream- Input File StreamfileName- Name of the file to be addedfileSize- Size of the File to be addedattachmentType- type of attachment File- Throws:
IMCException
-
addChildByProductErpId
Adds a new line item under this object by specifying its ERP ID.The validity of the given ERP ID will only be evaluated after the script has completed its execution and returns control back to the main application.
- Parameters:
productErpId- The ERP ID of the product to be added as the new line item- Returns:
- The
SalesItemNodeobject representing the newly added line item - Throws:
IMCException
-
addChildByProductURI
Adds a new line item under this object by specifying its Product URI.The validity of the given URI will only be evaluated after the script has completed its execution and returns control back to the main application.
- Parameters:
productURI- The URI of the product to be added as the new line item. The full path has to be provided.- Returns:
- The
SalesItemNodeobject representing the newly added line item - Throws:
IMCException
-
addNewBusinessObjectData
Create businessAttribute data and assign it to salesItem- Parameters:
businessObjectDataDTO- as BusinessObjectDataDTO. SeeBusinessObjectDataDTO- Returns:
- SalesItemNode
-
addNewPriceItem
Create and Add Price Item data to salesItem, without triggering SSC pricing. Should not be used unless that is the intention- Parameters:
priceItemData- as PriceItemData. SeePriceItemData- Returns:
- SalesItemNode
- Throws:
IMCException
-
addPartnerFunctions
Add partner function records into salesItem's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to add into a salesItem.- Returns:
- The
SalesItemNodeinstance.
-
changeName
Alters the name of this line item- Parameters:
newName- The new name- Throws:
IMCException
-
changeParent
Moves this line item to be under a different line item- Parameters:
newParent- TheSalesItemNodeobject (i.e. a line item) that will become the new parent of this line item- Throws:
IMCException- If trying to set the parent to be one of it's own descendant node or its own self
-
changeParent
Moves this line item to be directly under the quote- Parameters:
newParent- TheSalesItemsTreeobject (i.e. the quote) that will become the new parent of this line item- Throws:
IMCException- If trying to set the parent to be one of it's own descendant node or its own self
-
changeQuantity
Alters the quantity of this line item- Parameters:
newQty- The new quantity- Throws:
IMCException
-
copy
Copies the current line item.The copied node will be created with identical properties as the original, and will be placed under the same parent. Only the current line item will be copied, not any of its children
- Returns:
- The
SalesItemNodeobject representing the newly added line item - Throws:
IMCException
-
delete
public void delete()Deletes the current line item and all of its descendant nodes -
deleteLineItemAttachment
Delete multiple Line Item Attachments- Throws:
IMCException
-
deletePartnerFunctions
public SalesItemNode deletePartnerFunctions(Collection<BusinessObject> partnerFunctionRecords) throws IMCException Remove partner function records into SalesItem's Partner Function.- Parameters:
partnerFunctionRecords- . The partner function records to remove into a SalesItem.- Returns:
- The
SalesIteminstance. - Throws:
IMCException
-
deletePriceItem
Remove Price Item data from salesItem, without triggering SSC pricing. Should not be used unless that is the intention- Parameters:
priceItemData- as PriceItemData. SeePriceItemData- Returns:
- SalesItemNode
- Throws:
IMCException
-
filterChildrenByDynamicAttribute
public List<SalesItemNode> filterChildrenByDynamicAttribute(String dynamicAttributeName, List<Object> dynamicAttributeValues) throws IMCException Retrieves the list of child line items that has dynamic attribute of one of the specified values- Parameters:
dynamicAttributeName- The object name of the dynamic attribute. It can be either Dynamic Symbolic Attribute (DSA) or Dynamic Data Attribute (DDA). Note that only the object name can be used here, not the language-specific labelsdynamicAttributeValues- The list of acceptable values for the dynamic attribute. For DSA, only the object name of the ranges can be used here, not the language-specific labels- Returns:
- All
SalesItemNodeobjects directly under this object that meets the filter criteria - Throws:
IMCException
-
filterChildrenByDynamicAttribute
public List<SalesItemNode> filterChildrenByDynamicAttribute(String dynamicAttributeName, Object dynamicAttributeValue) throws IMCException Retrieves the list of child line items that has dynamic attribute of a specific value- Parameters:
dynamicAttributeName- The object name of the dynamic attribute. It can be either Dynamic Symbolic Attribute (DSA) or Dynamic Data Attribute (DDA). Note that only the object name can be used here, not the language-specific labelsdynamicAttributeValue- The accepted value for the dynamic attribute. For DSA, only the object name of the ranges can be used here, not the language-specific labels- Returns:
- All
SalesItemNodeobjects directly under this object that meets the filter criteria - Throws:
IMCException
-
filterChildrenByProductERPID
Retrieves the list of child line items that has one of the specified ERP IDs.- Parameters:
productERPIDs- The list of accepted values of ERP ID- Returns:
- All
SalesItemNodeobjects directly under this object that meets the filter criteria
-
filterChildrenByProductName
Retrieves the list of child line items that has one of the specified objectName- Parameters:
productNames- The list of accepted values of product object name- Returns:
- All
SalesItemNodeobjects directly under this object that meets the filter criteria
-
filterChildrenByProductType
Retrieves the list of child line items that belongs to a particular Product Type only- Parameters:
productTypeURI- The URI of the product type. The full path has to be provided.- Returns:
- All
SalesItemNodeobjects directly under this object that meets the filter criteria
-
getAttachmentFile
Get a attachment file by file name. @seeAttachmentData.- Parameters:
fileName- as String the name of the file.- Returns:
AttachmentData.- Throws:
IMCException
-
getAttachmentFiles
Get the list of the attachment file.- Returns:
AttachmentDatain List.- Throws:
IMCException
-
getAttachmentFilesByType
Get the list of the attachment file by file type. @seeAttachmentData.- Parameters:
fileType- as String. The file type.- Returns:
AttachmentDatain List.- Throws:
IMCException
-
getAttachmentFolder
Get an attachment folder by folder name.- Parameters:
folderName- the name of the folder.- Returns:
AttachmentFolderData.- Throws:
IMCException
-
getAttachmentFolders
Get the list of the attachment folder.- Returns:
AttachmentFolderDatain List.- Throws:
IMCException
-
getChildren
Retrieves the list of all line items directly under this object- Returns:
- All
SalesItemNodeobjects directly under this object
-
getDynamicAttribute
Retrieves the value of a dynamic attribute of this line item- Parameters:
dynamicAttributeName- The object name of the dynamic attribute. It can be either Dynamic Symbolic Attribute (DSA) or Dynamic Data Attribute (DDA). Note that only the object name can be used here, not the language-specific labels- Returns:
- The value of the dynamic attribute, or null if the line item does not have such a dynamic attribute
- Throws:
IMCException
-
getDynamicAttributes
Retrieves all dynamic attributes for a configurable or classified line item.- Returns:
- A map of all dynamic attributes, with the attribute name as the key and the attribute value as the value, or empty if the line item does not have any attributes defined.
- Throws:
IMCException
-
getGeojson
To get the google map data. UseMapUtilto manipulate it.- Returns:
- the google map data as String.
- Throws:
IMCException- See Also:
-
getItemHeaderDataAttributeValue
To get the value of the Item Header Price Item- Parameters:
attributeURI- as String the URI of the itemHeaderPriceItem attribute- Returns:
- the value as Object
- Throws:
IMCException
-
getNewMaterialItemDataAttributeValue
To get the value of the New Material Item * @param attributeURI as String the URI of the NewMaterialItem attribute- Parameters:
attributeURI- as String the Data URI of the NewMaterialItem- Returns:
- the value as Object
- Throws:
IMCException
-
getNewMaterialItemRelAttributeObjectERPId
To get the objectERPId value of the New Material Item * @param attributeURI as String the URI of the NewMaterialItem attribute- Parameters:
attributeURI- as String the Relation URI of the NewMaterialItem- Returns:
- the objectERPId of the relation attribute as String
- Throws:
IMCException
-
getNewMaterialItemRelAttributeObjectURI
To get the URI value of the New Material Item * @param attributeURI as String the URI of the NewMaterialItem attribute- Parameters:
attributeURI- as String the Relation URI of the NewMaterialItem- Returns:
- the URI of the relation attribute as String
- Throws:
IMCException
-
getObjectName
Retrieves the object name of this line item- Returns:
- The object name of this line item
- Throws:
IMCException
-
getParent
Retrieves the parent of this line item- Returns:
- The
SalesItemNodeobject representing the parent of this line item, or null if this is a top level line item (i.e. the parent is theSalesItemsTreeobject)
-
getPartnerErpId
To get the ERPId of the partner function by partner function URI.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- The ERPId for the partner function as String.
nullif not found. - Throws:
IMCException
-
getPartnerObjectId
To get the object Id of the partner function by partner function URI.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- The partner function object Id as String.
nullif not found. - Throws:
IMCException
-
getPartnerObjectName
To get the object Name of the partner function by partner function URI.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- The partner function object Id as String.
nullif not found. - Throws:
IMCException
-
getPartners
Retrieves the partner function of the line item- Returns:
- The partners as Map<String, List<AbstractObjectDTO>> with the uri of the partner function as key (eg: http://www.inmindcloud.com/application/schema.owl#BUYER_PARTY)
- Throws:
IMCException
-
getPartnersErpId
To get all the ERPId for a type of partner function.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- List of erpId in String.
- Throws:
IMCException
-
getPartnersObjectId
To get all the object Id for a type of partner function.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- List of object Id in String.
- Throws:
IMCException
-
getPartnersObjectName
To get all the object names for a type of partner function.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- List of object name in String.
- Throws:
IMCException
-
getPartnersURI
To get all the object URI for a type of partner function.- Parameters:
PartnerFunctionURI- the URI of the partner function.- Returns:
- List of object URI in String.
- Throws:
IMCException
-
getPartnerURI
To get all the object URI for a type of partner function.- Parameters:
partnerFunctionURI- the URI of the partner function.- Returns:
- List of object URI in String.
- Throws:
IMCException
-
getPriceItemByTypeName
To get the price Item data by name.PriceItemData- Parameters:
name- as String the name of the price item.- Returns:
PriceItemData.- Throws:
IMCException
-
getPriceItemByTypeUri
To get the price Item data by price item type URI.PriceItemData- Parameters:
uri- as String the uri of the price item type.- Returns:
PriceItemData.- Throws:
IMCException
-
getPriceItemByUri
To get the price Item data by price item URI.PriceItemData- Parameters:
uri- as String the uri of the price item.- Returns:
PriceItemData.- Throws:
IMCException
-
getPriceItemsByTypeName
To get all the price Item data by the name of the price item type.PriceItemData- Parameters:
name- as String the name of the price item type.- Returns:
PriceItemData.- Throws:
IMCException
-
getPriceItemsByTypeUri
To get all the price Item data by the URI of the price item type .PriceItemData- Parameters:
uri- as String the URI of the price item type.- Returns:
PriceItemDatain List- Throws:
IMCException
-
getPriceItemsJustified
To get all justified price Item data.PriceItemData- Parameters:
justificationURI- as String- Returns:
PriceItemDatain List- Throws:
IMCException
-
getProductComments
To get all product comments.- Returns:
- a map whose key is language and value is comment.
- Throws:
IMCException
-
getProductErpId
Retrieves the ERP ID of this line item- Returns:
- The ERP ID of this line item
-
getProductObjectName
Retrieves the product name of this line item- Returns:
- The full path of the product name of this line item
-
getProductTypeErpId
Retrieves the product type ERPID of this line item- Returns:
- The product type URI of this line item
- Throws:
IMCException
-
getProductTypeURI
Retrieves the product type URI of this line item- Returns:
- The product type URI of this line item
-
getProductURI
Retrieves the product URI of this line item- Returns:
- The full path of the product URI of this line item
-
getQuantity
Retrieves the quantity of this line item- Returns:
- The quantity of this line item
- Throws:
IMCException
-
getSalesItemDataAttributeValue
Return salesItem data attribute value by the attribute uri- Parameters:
attributeURI- as String. The uri of the attribute- Returns:
- the value of the data attribute as Object
- Throws:
IMCException
-
getSalesItemRelationAttributeErpId
Return salesItem relation attribute's ERPID by the attribute uri- Parameters:
attributeURI- as String. The uri of the attribute- Returns:
- the erpID of the data attribute as String
- Throws:
IMCException
-
getSalesItemRelationAttributeObjectId
Return salesItem relation attribute's objectID by the attribute uri- Parameters:
attributeURI- as String. The uri of the attribute- Returns:
- the objectID of the data attribute as String
- Throws:
IMCException
-
getSalesItemRelationAttributeObjectName
Return salesItem relation attribute's objectName by the attribute uri- Parameters:
attributeURI- as String. The uri of the attribute- Returns:
- the objectName of the data attribute as String
- Throws:
IMCException
-
getSalesItemRelationAttributeURI
Return salesItem relation attribute's URI by the attribute uri- Parameters:
attributeURI- as String. The uri of the attribute- Returns:
- the URI as String of the data attribute
- Throws:
IMCException
-
getSalesItemURI
Retrieves the object URI of sales item of this line item- Returns:
- The full path of the sales item URI of this line item
-
hasDynamicAttribute
Checks if this line item has a particular dynamic attribute- Parameters:
dynamicAttributeName- The object name of the dynamic attribute. It can be either Dynamic Symbolic Attribute (DSA) or Dynamic Data Attribute (DDA). Note that only the object name can be used here, not the language-specific labels- Returns:
- True if the line item has the dynamic attribute
- Throws:
IMCException
-
setDataAttribute
Set the immediate data attribute to SalesItem- Parameters:
attributeURI- as String. The uri of the Business Data Attributevalue- as Object. The value of the object.- Returns:
- SalesItemNode
- Throws:
IMCException
-
setDynamicAttribute
public void setDynamicAttribute(String dynamicAttributeName, Object dynamicAttributeValue) throws IMCException Sets the value of a dynamic attribute of this line item.The validity of the given dynamic attribute or its value will only be evaluated after the script has completed its execution and returns control back to the main application.
- Parameters:
dynamicAttributeName- The object name of the dynamic attribute. It can be either Dynamic Symbolic Attribute (DSA) or Dynamic Data Attribute (DDA). Note that only the object name can be used here, not the language-specific labelsdynamicAttributeValue- The value to be set for the dynamic attribute. For DSA, only the object name of the ranges can be used here, not the language-specific labels- Throws:
IMCException- the platform exception
-
setDynamicAttributeIfExist
public void setDynamicAttributeIfExist(String dynamicAttributeName, Object dynamicAttributeValue) throws IMCException Sets the value of a dynamic attribute of this line item.The existence of the given dynamic attribute will NOT be checked, if the sales item does not have such a DA, it will be silently ignored and will not result in an exception. If the dynamic attribute exists, the validity of the value will still be evaluated after the script has completed its execution and returns control back to the main application.
This method will still throw exception if used on a Sales Item that is a non-configurable product
- Parameters:
dynamicAttributeName- The object name of the dynamic attribute. It can be either Dynamic Symbolic Attribute (DSA) or Dynamic Data Attribute (DDA). Note that only the object name can be used here, not the language-specific labelsdynamicAttributeValue- The value to be set for the dynamic attribute. For DSA, only the object name of the ranges can be used here, not the language-specific labels- Throws:
IMCException- the platform exception
-
setGeojson
Set the google map data for the salesItem- See Also:
-
setItemHeaderData
To set item header price item.- Parameters:
attributeURI- as String. The URI of the price item.value- as Object. The value for the price item.- Throws:
IMCException
-
setPriceItemByTypeName
public SalesItemNode setPriceItemByTypeName(String priceItemTypeName, BigDecimal baseAmount) throws IMCException Create or Update price item with baseAmount only.
Note that this method assumes that there can only be one Price Item of a given type. Thus, if a Price Item of that type already exists it will update it, otherwise it will create a new Price Item. If there are already multiple Price Items of the given type, only the first one will be updated.- Parameters:
priceItemTypeName- as String. The name of the priceItemTypebaseAmount- as BigDecimal. The baseAmount to update / create.- Returns:
- SalesItemNode
- Throws:
IMCException
-
setRelationAttribute
Set the immediate relation attribute to SalesItem- Parameters:
attributeURI- as String. The uri of the Business Relation AttributeURI- as String. The uri of the object.- Returns:
- SalesItemNode
- Throws:
IMCException
-
split
Splits the line item based on the given quantity.This will create a copy of the current item. The new item will have the given quantity, while the quantity of the current item will be reduced by the same amount. For example, if originally the line item has a quantity of 10, and this method is called with splitQuantity = 3, the original line item will now have quantity of 7 while the new line item will have quantity of 3.
Children of the current line items will not be copied over and will remain with the original item. All other properties such as quantity or dynamic attributes will be copied.
- Parameters:
splitQuantity- The quantity of the new line item. The quantity of the current item will be reduced by the same amount- Returns:
- The
SalesItemNodeobject representing the newly added line item - Throws:
IMCException
-
updatePriceItemBaseAmount
public SalesItemNode updatePriceItemBaseAmount(String priceItemURI, BigDecimal baseAmount) throws IMCException Update BaseAmount with targetCurrency of a Price Item- Parameters:
priceItemURI- as String. The URI of the price item to be updated.baseAmount- as BigDecimal. The BaseAmount of the price item.- Returns:
- SalesItemNode
- Throws:
IMCException
-
updatePriceItemBaseCurrency
public SalesItemNode updatePriceItemBaseCurrency(String priceItemURI, String baseCurrencyUri) throws IMCException Update baseCurrencyUri of a Price Item- Parameters:
priceItemURI- as String. The URI of the price item to be updated.baseCurrencyUri- as String. The base Currency Uri of the price item.- Returns:
- SalesItemNode
- Throws:
IMCException
-
updatePriceItemBaseQuantity
public SalesItemNode updatePriceItemBaseQuantity(String priceItemURI, BigDecimal baseQuantity) throws IMCException Update BaseQuantity with UoM of a Price Item- Parameters:
priceItemURI- as String. The URI of the price item to be updated.baseQuantity- as BigDecimal. The Base Quantity value (base condition unit) of the price item.- Returns:
- SalesItemNode
- Throws:
IMCException
-
updatePriceItemBaseUnitUoM
public SalesItemNode updatePriceItemBaseUnitUoM(String priceItemURI, String baseUnitUoMUri, String baseUnitUoMName) throws IMCException Update baseUnitUoMUri and baseUnitUoMName of a Price Item- Parameters:
priceItemURI- as String. The URI of the price item to be updated.baseUnitUoMUri- as String. The base unit UoM Uri of the price item.baseUnitUoMName- as String. The base unit UoM Name of the price item.- Returns:
- SalesItemNode
- Throws:
IMCException
-
updatePriceItemConditionIsInactive
public SalesItemNode updatePriceItemConditionIsInactive(String priceItemURI, boolean conditionIsInactive) throws IMCException Update sequence of a Price Item- Parameters:
priceItemURI- as String. The URI of the price item to be updated.sequenceID- as int. The sequence of the price item.- Returns:
- SalesItemNode
- Throws:
IMCException
-
updatePriceItemJustification
public SalesItemNode updatePriceItemJustification(String priceItemURI, String uri) throws IMCException Update Justification of a Price Item- Parameters:
priceItemURI- as String. The URI of the price item to be updated.uri- as String. The URI of the justification. (http://www.inmindcloud.com/application/schema.owl#UserJustified or http://www.inmindcloud.com/application/schema.owl#SystemJustifiedERP)- Returns:
- SalesItemNode
- Throws:
IMCException
-
updatePriceItemSequence
public SalesItemNode updatePriceItemSequence(String priceItemURI, int sequenceID) throws IMCException Update sequence of a Price Item- Parameters:
priceItemURI- as String. The URI of the price item to be updated.sequenceID- as int. The sequence of the price item.- Returns:
- SalesItemNode
- Throws:
IMCException
-
updatePriceItemTargetAmount
public SalesItemNode updatePriceItemTargetAmount(String priceItemURI, BigDecimal targetAmount) throws IMCException Update TargetAmount of a Price Item- Parameters:
priceItemURI- as String. The URI of the price item to be updated.targetAmount- as BigDecimal. The targetAmount of the price item.- Returns:
- SalesItemNode
- Throws:
IMCException
-
updatePriceItemTargetCurrency
public SalesItemNode updatePriceItemTargetCurrency(String priceItemURI, String targetCurrencyUri) throws IMCException Update TargetCurrency of a Price Item- Parameters:
priceItemURI- as String. The URI of the price item to be updated.targetCurrencyUri- as String. The target Currency Uri of the price item.- Returns:
- SalesItemNode
- Throws:
IMCException
-