I wanted to print a special report for products sold belonging to a particular group.
[Promotions Sold:2,1, 1]
@{REPORT ORDER DETAILS:O.MenuItemName,O.ItemGroup,O.Quantity.Sum.desc:(ODI=True):{0}:,}
{REPORT ORDER DETAILS:O.MenuItemName,O.ItemGroup,O.Quantity.sum;#:(ODI=True) and O.MenuItemName="$1"}
This works,
But when i do:
[Promotions Sold:2,1, 1]
@{REPORT ORDER DETAILS:O.MenuItemName,O.ItemGroup,O.Quantity.Sum.desc:(ODI=True):{0}:,}
{REPORT ORDER DETAILS:O.MenuItemName,O.ItemGroup,O.Quantity.sum;#:(ODI=True) and O.MenuItemName="$1" and O.ItemGroup=“Promotion”}
it fai!s!
Im confused because it does print the ItemGroup correct in the report when i dont have the condition for particular group. Adding the comparison in the end kills everything.