The following tables need to be mapped into the RAW layer for Location Clustering to be set up. With the release a standard data mapping into the raw layer is provided from the Navision erp tables. For other data sources either the customer should provide data directly into the raw layer tables er you use the raw views for data mapping.
Try not to change anything in the other layers as the mapping into PREP and LC are part of the upgrade paths.
raw.SALE_VALUE_HISTORY
History of Sales, Cost of Goods Sold and Discounts in values and units.
Primary key: PRODUCT_ITEM_NO,LOCATION_NO,DATE
PRODUCT_ITEM_NO
(nvarchar) - required: The product numberLOCATION_NO
(nvarchar) - required: the location numberDATE
(date) - required: The date of saleSALE_UNITS
(decimal(18,4)) - not required: Sale in unitsTRANSFER_UNITS
(decimal(18,4))- not required:SALE_VALUE
(decimal(18,4)) - not required but recommended : Sale in valueCOST_VALUE
(decimal(18,4)) - not required: Cost of sales in valuePLANNED_DISCOUNT_VALUE
(decimal(18,4)) - not required: Planned discount in valueOTHER_DISCOUNT_VALUE
(decimal(18,4)) - not required: Other discount in valueNote that sale_value is not required but it’s used to calculate replenishment grade, so if a customer intends to use that then it’s required. Please check with your customer before eliminating data like sale value from the data mapping as it may be information that they want to see when planning location clusters.