|
From: Leon T. <le...@gr...> - 2007-01-10 00:55:35
|
Author: leon
Date: 2007-01-09 16:55:34 -0800 (Tue, 09 Jan 2007)
New Revision: 42
Modified:
versions/0.9/trunk/src/org/opentaps/dataimport/ProductImportServices.java
Log:
Added default productFeatureTypeId = OTHER_FEATURE for imported features.
Modified: versions/0.9/trunk/src/org/opentaps/dataimport/ProductImportServices.java
===================================================================
--- versions/0.9/trunk/src/org/opentaps/dataimport/ProductImportServices.java 2007-01-10 00:41:43 UTC (rev 41)
+++ versions/0.9/trunk/src/org/opentaps/dataimport/ProductImportServices.java 2007-01-10 00:55:34 UTC (rev 42)
@@ -166,7 +166,7 @@
toStore.add(goodIdentification);
}
- // product features (this is per productFeatureN)
+ // product features (this is per productFeatureN) all of these have type OTHER_FEATURE
if (!UtilValidate.isEmpty(data.getString("productFeature1"))) {
String productFeatureId = data.getString("productFeature1");
productFeatureId = productFeatureId.toUpperCase().replaceAll("\\s", "_");
@@ -181,6 +181,7 @@
input = FastMap.newInstance();
input.put("productId", product.get("productId"));
input.put("productFeatureId", productFeatureId);
+ input.put("productFeatureTypeId", "OTHER_FEATURE");
input.put("fromDate", now);
GenericValue productFeatureAppl = delegator.makeValue("ProductFeatureAppl", input);
toStore.add(productFeatureAppl);
|