I am looking for help organizing my process document on how to do a "Daltile Inventory Upload" here is what I currently have:
Daltile Spreadsheet Formatting
NEW PROCESS
Make sure sheet does not have duplicate header rows
For all new items perform the below:
A) Make a copy of the sheet (save as filename_edit1)
B) Rename sheet1 to “Products”
C) Copy tabs from prior upload
a. Size – Field tile & Decos
b. Size – Trim
c. Brand
d. Attributes – SF/Ctn, SF/Pallet, Weight/UOM, Weight/Pallet
e. Locations
f. Category Mapping
g. Quantity ID
D) Run query in DB to find all active and pending product
a. SELECT concat(SKU,LocationID,Display), SKU, LocationID,Display, StatusID FROM thewinn2_xintoryDaltile.Products where StatusID in ('1','2') LIMIT 0, 5000
E) Save query to CSV
F) Do a compare between current sheet to find any items that have been removed
G) Update products currently in (3) inactive to (5) removed
a. update thewinn2_xintoryDaltile.Products set StatusID='5' where StatusID='3'
H) Update Status to (3) – Inactive for products removed from last upload- be sure not to include items with inventory only update
NOTE: DO NOT REMOVE 9999577115 (Adhesive)
update thewinn2_xintoryDaltile.Products set StatusID='1' where SKU='9999577115'
a.
b. update thewinn2_xintoryDaltile.Products set StatusID='3', DateUpdated='2019-09-29 00:00:00' where StatusID in ('1','2') and SKU ='SKU' and LocationID='LocationID';
I) Change Net Avail. Column to Quantity, change format to Number with no decimals
J) Change format to Number with 2 decimals for the following columns
LbsPerCarton LbsPerPallet SFPerCarton SFPerPallet
K) Add column for UnitPrice use the following formula where S2 = Post Price, change format to Number with no decimals
a. =(ROUNDUP(S2+0.01,1)-0.01)*100 No longer rounding price as of 12/19/22 – auto discount will calculate price
L) For all current products, update the inventory, UnitPrice and DateUpdated (to upload date) where the current status is 1 or 2 (active/pending) ** NOTE: Make sure there are NO commas in the quantity
a. update thewinn2_xintoryDaltile.Products set DateUpdated='2019-09-17 00:00:00', Quantity='73110.00' where StatusID in ('1','2') and LocationID='81' and SKU='0049S4269CCSP';
M) Set quantity sold = 0
a. update thewinn2_xintoryDaltile.Products set QuantitySold = NULL where StatusID = '1';
N) Update TotalPrice on Both sites
O) Lookup any products “unable to upload” from previous upload
P) Remove any product that has a SKU with “2P” in it (2nd grade)
Remove Natural Stone ( from Value site only)
Remove any field tile where they are below the minimum quantities listed below:
a. Team 01 = Glazed Wall Tile = 500 SF
b. Team 02 = Mosaics = 100 SF
c. Team 03 = Quarry Tile = 300 SF
d. Team 04 = Glazed Floor = 500 SF
e. Team 06 = Color-body Porcelain = 500 SF
f. Team 09 = Natural Stone = 100 SF
Remove all lines where the Product Line has “National Account” in it
Assistant
Here's a suggested organization for your process document on how to do a "Daltile Inventory Upload":
I. Daltile Spreadsheet Formatting
A. Prepare the spreadsheet
code
1. Remove duplicate header rows
2. Create a copy of the sheet for new items
B. Configure the sheets
code
1. Rename sheet1 to "Products"
2. Copy tabs from the prior upload
C. Run queries and update the database
code
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Remove all line with Ragno as the brand (from Value site only) )Ragno is now in upload per Dave on 6/7/21)
Add column next to Brand for Mill
VLookup for Brand (add $ signs)
a. For brand HM = Marazzi Home Center
Change name of Team Name column to Manufacturer
Add column to right of Product Line Series for Style
Sort Style A to Z
Start filling in Style column without repetitive information (DB, Floor, Wall, etc.) until Excel completes – press enter
Remove all Finesse Wall Tile products from all locations as there is a Quality Hold on the material. Dal said we can now re-add Finesse, this step is no longer needed (6/6/19)
Review each row because Excel makes mistakes
a. If in glazed floor tile product category and description includes porcelain (por/porc, etc) keep porcelain in new product category
Add column next to SKU for Color Number
In color number column, copy 1st four digits of SKU: =LEFT(cell #, 4)
Run query in DB to get current color mapping
select distinct a.ColorNumber, uc_words(a.color) from thewinn2_xintoryDaltile.Products a
Inner join (
select ColorNumber, max(ActivatedDate) ActivatedDate
from thewinn2_xintoryDaltile.Products group by ColorNumber
) b on a.ColorNumber = b.ColorNumber and a.ActivatedDate = b.ActivatedDate
Use VLOOOKUP to match color names that already exist
Start filling in color name for ones that do not exist
Add column next to size
Vlookup for Size
a. If Type column includes field (FLT) & trim (TRM) & deco (DCO), then filter for field tile & decos together and do VLookup for size (see tab for field and deco size) and then filter for trim alone and do Vlookup to tab for Size – Trim.
Add column next to Description for Color Name
a. ShippingWeight = LbsPerPallet
i. Vlookup from Weight/Pallet to Weight/Plt on Attributes tab
b. Weight = LbsPerCarton/SFPerCarton
i. Weight per FT2 – Vlookup from SKU to Weight/UOM (unit of measure = FT2) on Attributes tab
c. CartonsPerPallet = SFPerPallet/SFPerCarton
i. – Divide units/pallet by units per carton
d. MinCartonQuantity = SFPerCarton
i. Unit SF per Carton (MinCartonQuantity)– Vlookup from SKU number (called Item Number on Attributes tab) to SF/ Carton on Attributes tab (this column will be removed for final upload)
(we have had some problems getting a complete Attributes list from Daltile; sometimes after we do this column, I find hundreds of line items with N/A; we cannot upload any line item without the info in 16 (d) (e) (f) (g) (h); if you find a small number of line items and small quantity, you need to filter out all the N/A’s; if you find a large number without matches, stop and contact me; I will contact Dal and ask for a revised Attributes list)
For Comments column set it to:
i. Material is first quality and sold as is. No returns.
Look up images that may already exists
select Max(ActivatedDate) LastActivated,SKU, Mill, Style, ColorNumber, Color, concat( '') as Image , ImageUrl , OriginalImageUrl from thewinn2_xintoryDaltile.Products where
(ImageUrl is not null and OriginalImageUrl is not null and ImageUrl !='') and ActivatedDate is not null and
SKU in ('RD136361PF','0Q35661PB') group by SKU
LOOK /COLOR GROUP LOOKUP SQL
select Display Store, SKU, Mill Brand, Style, ColorNumber "Color Number", Color, concat( '') as Image ,'' Look, '' as 'Color Group' from thewinn2_xintoryDaltilev4Dev.Products
where StatusID='1' and Display='Overstock'
code
November 27, 2018
Instructions for formatting spreadsheet – See sample spreadsheet in Dal Uploads – Fully Formatted
I outlined the steps I took below and attached the updated spreadsheet. Some of the formulas in the spreadsheet reference another spreadsheet that I have on my computer so some of the formula links might be broken for you, but I can always send you the information you need from the other spreadsheets to do the VLookups.
Steps:
Copy all values from the Products tab to a new tab (so to remove all of the formulas)
Delete columns before the RDC Name
Insert a new column before the RDC name
Do a Vlookup in the new column on the RDC Name to find our LocationID for the RDC.
Delete the LOG column
Insert a new column after the “Type” column
Add a formula in that column to covert the product type abbreviation into the actual product type (i.e. “FLT” to “Field Tile”)
In between the 2nd product type column and the product line column, add 2 new columns
Combine (using the concatenate formula) the RDC name and the product type in the first new column
In the second new column do a vlookup on the RDC name and product type to get our CategoryID
Add a column next to the UOM column
Do a vlookup in that column to get our QuantityUnitsID
Add a new column next to the price column and put in a formula to multiply every price by 100
Repeat step 1, but copy all of the values from the current tab to a new tab
Delete the following columns: RDC Name, Product Type, Brand, Team, Product Type, the original product line, the original size, Price, UOM, “Used to calculate # pallets”, # Pallets, Unit (SF) per pallet
Rename the column headers to the following names (these column names must be exact, but the column order doesn’t matter): LocationID, Type, Mill, CategoryID, Style, Size, SKU, ColorNumber, Description, Color, Quantity, QuantityUnitsID, UnitPrice, MinCartonQuantity, CartonsPerPallet, Weight, ShippingWeight, Display
Make sure all number columns do not have any commas!
Add the following new columns and values for all rows
CompanyID - Daltile’s companyID is 113 for all rows
UserID – Joshua Jackson’s UserID is 934. Copy 934 to all rows
StatusID - 1 means active, 2 means pending. Copy values to all rows
Make the following 2 (pending)
Items with no images
Items with no price
Missing Attributes
CurrencyID - 6 means USD. Copy to all rows
WeightUnitsID - 11 means LBS. Copy to all rows
ShippingWeightUnitsPer - 25 means per pallet. Copy to all rows
DateCreated - the current date in the format "2018-11-27”. Copy to all rows
DateUpdated - same as above
UpdatedByUserID - my UserID is 663. Copy to all rows
SiteID - 2 means the daltile site. Copy to all rows.
MinPartialQuantity - 1 means 1 unit is the minimum partial quantity. Copy to all rows
Comments - “Discontinued material is first quality and sold as is. No returns.”. Copy to all rows
Save this tab as a CSV
Database:
Upload CSV file
Update Url, Image Url, and Image File Paths from old products
Update blank price, imageUrl, to NULL
Set active products to inactive and pending products to active
Any Item Number that ends in L or LK is Polished......Please increase price of the item size by $.10 / SF
Run script for Trim
Update thewinn2_xintoryDaltile.Products set HasTrim = NULL where StatusID=’1’
Update thewinn2_xintoryDaltile.Products p
INNER JOIN (
SELECT
ProductID as TrimProductID,
Mill as TrimMill,
Style as TrimStyle,
Color as TrimColor,
CategoryID as TrimCategoryID
FROM Products
WHERE
LOWER(Type) in ('trim', 'deco')
AND StatusID in ('1', '2')
AND Quantity - COALESCE(QuantitySold,0) > 0
) tp ON
p.Mill = tp.TrimMill AND
p.Style = tp.TrimStyle AND
p.Color = tp.TrimColor AND
p.CategoryID = tp.TrimCategoryID
SET p.HasTrim = 'Y'
WHERE
p.StatusID in ('1', '2')
AND p.ProductID <> tp.TrimProductID
AND LOWER(p.Type) not in ('trim', 'deco')
Update thewinn2_xintoryDaltile.Products Set WriteOffPercentage = NULL
First Step –
update
thewinn2_xintoryDaltile.Products
Set
AutoMarkdownOriginalUnitPrice = UnitPrice
where AutoMarkdownOriginalUnitPrice is NULL
and StatusID in ('1','2') and Display !='Overstock'
Second Step
update
thewinn2_xintoryDaltile.Products
Set
UnitPrice = CASE
WHEN DATEDIFF(NOW(), DateCreated) > 150 THEN Round(AutoMarkdownOriginalUnitPrice * .50)
WHEN DATEDIFF(NOW(), DateCreated) > 120 THEN Round(AutoMarkdownOriginalUnitPrice * .65)
WHEN DATEDIFF(NOW(), DateCreated) > 90 THEN Round(AutoMarkdownOriginalUnitPrice * .70)
WHEN DATEDIFF(NOW(), DateCreated) > 60 THEN Round(AutoMarkdownOriginalUnitPrice * .75)
WHEN DATEDIFF(NOW(), DateCreated) > 30 THEN Round(AutoMarkdownOriginalUnitPrice * .80)
ELSE UnitPrice
END
WHERE
StatusID in ('1','2') and Display !='Overstock'
1. Find all active and pending products
2. Save query to CSV
3. Compare and update removed products
4. Update products currently in the inactive status
D. Format columns and add new columns
code
1. Update column formats
2. Add new columns with appropriate formulas
3. Look up images and add image information
E. Review and remove specific products
code
1. Remove products with "2P" in the SKU
2. Remove Natural Stone (Value site only)
3. Remove specific field tile based on minimum quantities
4. Remove lines with specific product lines or brands
F. Add and modify columns
code
1. Add and fill in new columns with appropriate information
2. Run queries for lookup values
3. Perform VLOOKUPs for matching data
G. Update the database
code
1. Upload the CSV file
2. Update URL, Image Url, and Image File Paths
3. Set active and pending products
4. Apply specific updates for Trim and WriteOffPercentage
5. Run the image upload script
H. Daltile Pricing Markdown Formula (Manual)
code
1. Update the original unit price
2. Apply markdowns based on the date created
This organized process document should help you and your team follow the steps more clearly and efficiently.