[
https://issues.apache.org/jira/browse/OFBIZ-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
BJ Freeman updated OFBIZ-2583:
------------------------------
Description:
when importing data using the datafile code, the data may have different
categories or a hierachy of categories that need to be translated to ofbiz
categories.
this will augment the datafile code to match data catagories to the ofbiz
categories.
first one will use a datafile record to create the ProdImportCategoryMatch
entity from the datafile with a default "auto" for the prodCategory field.
when the data record is read, the service will see the auto and parse the
category string and create categories, not already created with the rollup. as
the last operation it will add the string with the last category as in the
string as the prodCategory field in the entity.
next when the data is read in, it will look for the category string in the
ProdImportCategoryMatch entity and replace the ImportCategoryString with the
prodCategory field
if there is more than one entry in the ProdImportCategoryMatch it will walk
down the sequence and add the product to each category.
was:
this is code and an entity that uses simple key map to convert the Categories
that an Import file may have to categories in the particular of biz.
example the import file has
leisure and sport|camping/hiking|accessories as the key and hik_acc would be
the returned value.
this is setup to import a cvc file or input key map from the UI
I took the base code from address map.
I did add a feature to look up the categories in the ui
At this point the services are not tied into the datafile code but is called
from the custom import routine.
I will probably edit this after I look at it later. :D
Affects Version/s: Release Candidate Branch 10.04
Release Branch 9.04
> datafile Import support for mapping categories
> ----------------------------------------------
>
> Key: OFBIZ-2583
> URL: https://issues.apache.org/jira/browse/OFBIZ-2583
> Project: OFBiz
> Issue Type: New Feature
> Affects Versions: Release Branch 9.04, Release Candidate Branch 10.04, SVN
> trunk
> Reporter: BJ Freeman
> Priority: Minor
> Attachments: OFBIZ-2583ProdImportCategoryMatchEntity.patch
>
>
> when importing data using the datafile code, the data may have different
> categories or a hierachy of categories that need to be translated to ofbiz
> categories.
> this will augment the datafile code to match data catagories to the ofbiz
> categories.
> first one will use a datafile record to create the ProdImportCategoryMatch
> entity from the datafile with a default "auto" for the prodCategory field.
> when the data record is read, the service will see the auto and parse the
> category string and create categories, not already created with the rollup.
> as the last operation it will add the string with the last category as in the
> string as the prodCategory field in the entity.
> next when the data is read in, it will look for the category string in the
> ProdImportCategoryMatch entity and replace the ImportCategoryString with the
> prodCategory field
> if there is more than one entry in the ProdImportCategoryMatch it will walk
> down the sequence and add the product to each category.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.