public interface IProductInformation extends ERPInterface
ERROR_CONNECT, ERROR_NONE, ERROR_PROGRAM, WARN_DUPLICATE, WARN_NONE
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<ImportMetaCriteria> |
getImportMeta()
Retrieves a collection of import metadata criteria for importing from
the ERP product database.
|
boolean |
getPending(ImportBatch batch)
Retrieves products from the ERP system that conform to the import criteria
given in the import batch object.
|
java.util.ArrayList<QuantityPriceBreak> |
getQtyBreaks(Product product)
Retrieves a collection of quantity price breaks for a product.
|
java.util.ArrayList<QuantityOnOrder> |
getQtyOnOrder(Product product)
Retrieves a collection of product on-order expected receipt dates and
quantities.
|
java.util.ArrayList<WarehouseDetail> |
getWhseDetail(java.lang.String whseId,
java.lang.String whseDesc,
Product product)
Retrieves a collection of detailed product quantities for a warehouse.
|
java.lang.String |
getWhseDetailDesc()
Returns the warehouse description that was retrieved from the ERP system
when a request was made to retrieve warehouse detail quantities.
|
java.lang.String |
getWhseDetailQty()
Returns the warehouse item on hand quantity that was retrieved from the
ERP system when a request was made for warehouse detail quantities.
|
java.util.ArrayList<WarehouseQuantity> |
getWhseQtys(Product product)
Retrieves a collection of product availability quantities by warehouse.
|
boolean |
setPriceAndAvail(java.util.ArrayList<Product> products,
int begIndex,
int endIndex,
boolean updatePrice,
boolean updateAvail)
Sets the price and availablility for a set of products using data from
the ERP system.
|
boolean |
validate(java.util.ArrayList<java.lang.Object[]> products)
Validates the given collection of products on the ERP system.
|
getContext, getErrorType, getWarningType, setContext, setErrorType, setWarningType
java.util.ArrayList<ImportMetaCriteria> getImportMeta()
boolean getPending(ImportBatch batch)
PendingProduct
information is
added to the batch.batch
- (ImportBatch) The batch to retrieve.true
if successful, otherwise false
.java.util.ArrayList<QuantityPriceBreak> getQtyBreaks(Product product)
product
- (Product) The product to retrieve.java.util.ArrayList<QuantityOnOrder> getQtyOnOrder(Product product)
product
- (Product) The product to retrieve.java.util.ArrayList<WarehouseDetail> getWhseDetail(java.lang.String whseId, java.lang.String whseDesc, Product product)
whseId
- (String) The id of the warehouse to retrieve.whseDesc
- (String) The description of the warehouse to retrieve.product
- (Product) The product to retrieve.java.lang.String getWhseDetailDesc()
java.lang.String getWhseDetailQty()
java.util.ArrayList<WarehouseQuantity> getWhseQtys(Product product)
product
- (Product) The product to retrieve.boolean setPriceAndAvail(java.util.ArrayList<Product> products, int begIndex, int endIndex, boolean updatePrice, boolean updateAvail)
products
- (ArrayList) A list of product objects to process.begIndex
- (int) The beginning index, inclusive. Only products
in the collection between begin and end indecises will be
updated.endIndex
- (int) The ending index, inclusive.updatePrice
- (boolean) If true, the price will be updated from
the ERP system.updateAvail
- (boolean) If true, the available quantity will be
updated from the ERP system.true
if successful, otherwise false
.boolean validate(java.util.ArrayList<java.lang.Object[]> products)
Object[]
having 9 or more elements.
The Object[]
array elements are defined as:
[0] input - (String) product id [1] input - (String) unit of measure code. [2] output - (Integer) new qty available [3] output - (Integer) new qty2 available [4] output - (BigDecimal) new price [5] output - (String) error codes (if validation errors or warnings) [9] output - (Boolean) qty breaks are possible
products
- (ArrayList) The products to validate.true
if successful, otherwise false
.