Ok, it has been a long time since i used GRP and I am drawing a brain fart right now.
I have a set that has a main product table and a one to many child table. The key and linking filed is "Style"
So one "Style" record in the parent table can have many linked records in the child table.
The child table creates a new record linked back to the parent and the field "Color" for each child record.
So the parent can have Style = PC61 and the Child can Have Style = PC61 with Color = Royal, Style = PC61 with Color = Black and so on.
Each Style and Color record in the child then has quantity fields for each of the sizes in-stock for that Style and Color and then a field that is the total of all the values in the different size fields.
So using a calculated field with " total(Catalog_Stock->Stock_Tot,GRP->Grand) " gets me the total amount of items in stock for all styles and colors. The field " Catalog_Stock->Stock_Tot " is the total of all item sizes for that style and color. So this part works as I do want to show the total amount of stock on hand for all styles and colors.
What I am having trouble figuring out again is I also want to display the total amount of items for that Style. So if a style has stock in 12 colors, the total of all items in all colors for that Style.
Did I make any sense?
I have a set that has a main product table and a one to many child table. The key and linking filed is "Style"
So one "Style" record in the parent table can have many linked records in the child table.
The child table creates a new record linked back to the parent and the field "Color" for each child record.
So the parent can have Style = PC61 and the Child can Have Style = PC61 with Color = Royal, Style = PC61 with Color = Black and so on.
Each Style and Color record in the child then has quantity fields for each of the sizes in-stock for that Style and Color and then a field that is the total of all the values in the different size fields.
So using a calculated field with " total(Catalog_Stock->Stock_Tot,GRP->Grand) " gets me the total amount of items in stock for all styles and colors. The field " Catalog_Stock->Stock_Tot " is the total of all item sizes for that style and color. So this part works as I do want to show the total amount of stock on hand for all styles and colors.
What I am having trouble figuring out again is I also want to display the total amount of items for that Style. So if a style has stock in 12 colors, the total of all items in all colors for that Style.
Did I make any sense?
Comment