The number of rows in regards to STYLES may not be the same in BU2 as we copy the styles following this rule:
VND STYLE VND Styles (via at least one row in Site Inventories any for VND Sites with 0 for on-order / on-hand / sales qtys / received qtys
As per my previous email, I was getting only styles with > 0 instead of 0. I will fix this tomorrow, but the styles for which there are no inventory/on order/sales qty and qty received will not get copied.
The SQL will look like this:
Select distinct style_id from site_inventories
Where business unit id =1 and site_id = (is a store in Vietnam)
and (si.qty_on_hand > 0 or si.qty_on_order > 0 or si.qty_received > 0 or si.qty_sold_regular+si.qty_sold_markdown+si.qty_sold_promotion > 0);