Hi,
i have made a custom report for bar and restaurant menu both separate, but strange is that the items from the restaurant menu are appearing in the Bar sales report. below is the code am using where could be the error ?
thank you.
[BAR SALES:5, 2, 2,1]
@{REPORT ORDER DETAILS:O.MenuItemName,O.ExactTotal.Sum.desc:(ODI=True) and (DE=Bar):{0}:,}
>{REPORT ORDER DETAILS:O.MenuItemName,O.Quantity.Sum.desc,O.ExactTotal.Sum.desc:(ODI=True) and (DE=Bar) and O.MenuItemName="$1"}
{REPORT ORDER DETAILS:' '+[O.PortionName],O.Quantity.Sum.desc,O.ExactTotal.Sum.desc:(ODI=True) and (DE=Bar) and O.MenuItemName="$1":2}
>Total|{REPORT ORDER DETAILS:O.ExactTotal.Sum:(ODI=True) and (DE=Bar)}
[User Sales:1, 1]
{REPORT ORDER DETAILS:O.User,O.ExactTotal.Sum.desc:(ODI=True) and (DE=Bar)}
@{REPORT PAYMENT DETAILS:P.User,P.Amount.Sum::{0}:,}
[Payments:2, 1, 2]
{REPORT PAYMENT DETAILS:P.Name,P.Amount.Percent,P.Amount.Sum:Payment.Amount > 0 and (DE=Bar)}
>Total|{REPORT PAYMENT DETAILS:P.Amount.Sum:Payment.Amount > 0 and (DE=Bar)}
[Settled by $1:1, 1, 1]
{REPORT PAYMENT DETAILS:P.Name,P.Amount.Percent,P.Amount.Sum:(PU=$1) and (DE=Bar)}
>Total Income|{REPORT PAYMENT DETAILS:P.Amount.Sum:(PU=$1) and (DE=Bar)}
[Refund Payments:2, 1, 2]
{REPORT REFUND PAYMENTS}