This supplemental type Service ID is available to plugin developers extending Inventory Product functionality. Creating a service using this Service ID and authorizing COR•REC Inventory access by placing a selection item within the Inventory Product view. This document describes the values the service plugin will receive from the Inventory Product view when selected. The plugin service is expected to manage the data as required.
Service Name: Inventory Product Supplemental Service
Service ID: com.corgroup.bms.inventory#INV_SUP_PRODUCT
Colaboration Method Action
public static final int INVENTORY_PRODUCT = -1
Colaboration Method Keys
public static final String PRODUCT = "product";
public static final String INVENTORY = "inventory";
public static final String INDENTIFIER = "identifier:";
public static final String ADHOC = "adhoc:";
public static final Integer INTEGER = "Integer";
public static final Boolean BOOLEAN = "Boolean";
public static final String STRING = "String";
public static final Long LONG = "Long";
public static final String VER = "Ver";
public static final String PRICING_TYPE = "Pricing_type";
public static final String ID = "Id";
public static final String ITEM_TYPE = "Item_type";
public static final String IMAGE = "Image";
public static final String SCHEDULE = "Inv_schedule";
public static final String UOFM = "Uofm";
public static final String DESCRIPTION = "Description";
public static final String PRICE = "Price";
public static final String BARCODE = "Barcode";
public static final String PRICING = "Pricing";
public static final String DATE_CREATED = "DateCreated";
public static final String DATE_MODIFIED = "DateModified";
public static final String UNIQUE_IDENTIFIER = "Identifier";
public static final String LIST_NAME = "ListName";
public static final String NAME = "Name";
public static final String COST = "Cost";
public static final String PRODUCT_ID = "Product_id";
public static final String INDENTIFIER_I = "Identifier_i";
public static final String MEASURE = "Measure";
public static final String TITLE = "InfoTitle";
public static final String QUANTITY = "Quantity";
public static final String LAST_COST = "Last_cost";
public static final String EXPIRY = "ExpiryString";
public static final String DISCONTINUED = "Discontinued";
public static final String OUT_OF_STOCK = "Out_of_stock";
public static final String VIRTUAL = "Virtual";
public static final String MIX_BATCH = "Mix_batch";
public static final String DISABLED = "Disabled";
public static final String SINGLE = "Single";
Colaboration Map Values
PRICING_TYPE
public static final int FIXED = 0;
public static final int PERCENT_PLUS = 1;
public static final int COST_PLUS = 2;
public static final int UNDETERMINED = 3;
Action CorrecService_I.INVENTORY_PRODUCT - delivers a map with values that describe an Inventory Product, Inventory
Identifier representing the inventory product and all Inventory Identifiers and Ad hoc elements that make up the product.
BothINDENTIFIER and ADHOC key have a suffix containing an int value represented by a String starting at "0". Any number
of INDENTIFIER and ADHOC elements may be mapped.
Map: The collaboration map will contain the following key/value pair.
PRODUCT
<Map<String, Map<String, Object>> key = Java Type, value [map_key =
field_name], [map_value = field_value]
INTEGER
(key) VER: the current record version
(key) PRICING_TYPE: pricing method
LONG
(key) ID: unique persisted id
(key) ITEM_TYPE:
(key) IMAGE: unique persisted id
(key) SCHEDULE: unique persisted id
(key) UOFM: unit of measure
STRING
(key) DESCRIPTION: descriptive information
(key) UNIQUE_IDENTIFIER: assigned unique record identifier
(key) LIST_NAME: extended product name
(key) PRICE: products assigned price fixed or modified
(key) BARCODE: value assigned as a barcode
(key) PRICING: PRICE#PRICE_TYPE value
(key) DATE_CREATED: date first created
(key) DATE_MODIFIED: date of last change applied
(key) COST: calculated cost of product
BOOLEAN
(key) SINGLE: true product represents an Identifier
(key) DISABLED: true then will only be available in the product view.
INVENTORY
<Map<String, Map<String, Object>> key = Java Type, value [map_key = field_name], [map_value = field_value]
INTEGER
(key) VER: the current record version
LONG
(key) ID: unique persisted id
(key) ITEM_TYPE:unique persisted id pointing to a Base or Compound type
(key) SCHEDULE: expense schedule unique persisted id if assigned
(key) MEASURE: unit measure unique persisted id if assigned
STRING
(key) TITLE: descriptive name of the inventory identifier
(key) UNIQUE_IDENTIFIER: assigned unique record identifier
(key) LIST_NAME: identifiers name
(key) BARCODE: value assigned as a barcode
(key) DATE_CREATED: date first created
(key) DATE_MODIFIED: date of last change applied
(key) QUANTITY: current in stock
(key) LAST_COST: last cost determined by latest batch ticket
(key) COST: current stated cost
(key) EXPIRY: shelf life of inventory item
(key) NAME: simple name of inventory item
BOOLEAN
(key) DISCONTINUED: true then discontinued
(key) OUT_OF_STOCK: true then out of stock
(key) VIRTUAL: true then not necessarily kept as a physical inventory
MIX_BATCH: true allow batches to be used as if they where received from the same supplier at the same time.
DISABLED: true then will only be available in the Identifier view.
IDENTIFIER[index]
<Map<String, Map<String, Object>> key = Java Type, value [map_key =
field_name], [map_value = field_value]
INTEGER
(key) VER: the current record version
LONG
(key) ID: unique persisted id
ITEM_TYPE:unique persisted id pointing to a Base or Compound type
SCHEDULE: expense schedule unique persisted id if assigned
MEASURE: unit measure unique persisted id if assigned
STRING
(key) TITLE: descriptive name of the inventory identifier
UNIQUE_IDENTIFIER: assigned unique record identifier
LIST_NAME: identifiers name
BARCODE: value assigned as a barcode
DATE_CREATED: date first created
DATE_MODIFIED: date of last change applied
QUANTITY: current in stock
LAST_COST: last cost determined by latest batch ticket
COST: current stated cost
EXPIRY: shelf life of inventory item
NAME: simple name of inventory item
BOOLEAN
(key) DISCONTINUED: true then discontinued
OUT_OF_STOCK: true then out of stock
VIRTUAL: true then not necessarily kept as a physical inventory
MIX_BATCH: true allow batches to be used as if they where received from the same supplier at the same time.
DISABLED: true then will only be available in the Identifier view.
ADHOC[index]
<Map<String, Map<String, Object>> key = Java Type, value [map_key =
field_name], [map_value = field_value]
INTEGER
(key) VER: the current record version
LONG
(key) PRODUCT_ID: inventory product unique persisted id
ID:unique persisted id
STRING
(key) LIST_NAME: ad hoc name
UNIQUE_IDENTIFIER: assigned unique product identifier
IDENTIFIER_I: indentifier assigned
DATE_CREATED: date first created
DATE_MODIFIED: date of last change applied
QUANTITY: current in stock
UOFM: unit of measure
COST: current stated cost
NAME: simple name of inventory item
BOOLEAN
(key) FIXED: true price not changed by quantity