Hi all,
Today we found out that the sequence of getting the item price or a discount from the trade agreements works differently when using product dimensions (e.g. size).
When finding the price first all combinations for the product dimensions are looped, then with a blank inventdimid. So first it tries to find a price with the size, for all combinations (table/group/all) then it searches for a price of the item without the size.
When finding discounts per combination (table/group/all) the inventdim combination is looped with and without the size.
So the sequence of finding a price is:
vendor (table) - Item+size (table)
vendor group (group) - Item+size (table)
all vendors (all) - Item+size (table)
vendor (table) - Item (table)
vendor group (group) - Item (table)
all vendors (all) - Item (table)
Sequence of finding a discount is:
vendor (table) - Item+size (table)
vendor (table) - Item (table)
vendor (table) - Item group (group)
vendor (table) - All Items (all)
vendor group (group) - Item+size (table)
vendor group (group) - Item (table)
vendor group (group) - Item group (group)
vendor group (group) - All items (all)
all vendors (all) - Item+size (table)
all vendors (all) - Item (table)
all vendor (all) - Item group (group)
all vendor (all) - All Items (all)
Does anybody knows why the logic is different in handling the inventory dimensions for prices and discounts?