Deposited TradeItems in the Article Pool.
Name | Meaning |
---|---|
Type | Type of the job step. |
Name | Name of the job step that will appear in the job designer |
Description | Optional description for the job step. |
AddEANs : | True or False, if the EAN is not stored, which pass EAN to create, if set to True. |
AutoCreateLocations : | True or False, if location is not stored, pass the location to create if set to True. |
DeleteMethod : | Method for deleting TradeItmes from which Articlepool is to be used, by period. For all TradeItems older than 3 months, etc. |
FieldHanlding : | Override or Merge, Override overwrites already filled fields and keeps Merge both values (old and new). |
OnlyBookLanguageTextByEAN : | True or False, with True only the LanguageText is booked to the EAN. |
OnlyBookPricelistpriceByEAN : | True or False, with True only the PriceListPrice is booked to the EAN. |
OverrideArticleNumberByEAN : | True or False, with True the same EAN but different article number the old article number is overwritten with a new. |
OverridePrimaryArticleIds : | True or False, default False, if a new document is read, an error message is generated as soon as an EAN has already been assigned for another item. True, only in case of exception, should be well thought, since the error message for the same EAN with different article is repressed |
PartnerToBook : | Specify for which partner the TradeItem is to be booked. |
The Supplier.TradeItemManager posts articles to the Article and ArticleDetail tables of the eBiss database using the Supplier.TradeItemSevices class. The Article table has a Relational 1: N connection to the ArticleDetail table using a foreign key (Article_Oid). The Supplier.TradeItemServices class performs the actual update process.
Incoming article catalog (Document-Object tradeItemDoc) 1) is supplied to the Supplier.TradeItemServices in the constructor. Small article pulks (batches) are assembled in ArrayLists.
2)LoadCache (caches loaded)
Three hash tables 1) are formed:
The article Hash and the EanHash are filled key-side with the information from the article catalog. After this, a database query is made, which returns all the article details already stored in the database to the items in the pulk and, if not present, into the three hash tables.
The BookMode is determined from the information in EanHash and ArticleDetailHash.
The accounting process is completed by the results and the resulting BookMode, that is, either a new ArticleDetail is created in the database, if the article is not available in the ArticleHash, a new article is entered in the Article table, or fields of an ArticleDetails in the database are updated, or the entry is denied. For all deletions, only the item action is set to deleted, no article details and articles are deleted from the database. The ModificationTime is entered for all changes to a ArticleDetails and Articles.