Hello World,
Here is my scenerio ; We actually created the Expense system at the account screens but the customer wants every piece of expense at their reports.
And i just dont know how to do this, but i thougt i can create a department and a different menu for expenses(products)
then i made a report sometin like this;
[Satıslar:1, 1]
Giderler Dahil Satışlar|[=F(TN('{REPORT TICKET TOTAL}')-TN('{REPORT TICKET TOTAL:(TEC.Müşteriler.Turu=Patron) or (TEC.Müşteriler.Turu=Personel)} or (TEC.Müşteriler.Turu=Nakit Gider)}'))]
Restoran Satışları|[=F(TN('{REPORT TICKET TOTAL}')-TN('{REPORT TICKET TOTAL:(TEC.Müşteriler.Turu=Patron) or (TEC.Müşteriler.Turu=Personel)}')-TN('{REPORT TICKET TOTAL:(TEC.Giderler.Turu=Nakit Gider) or (TEC.Giderler.Turu=KK Gider) }'))]
Patron Adisyonlari|{REPORT TICKET TOTAL:(TEC.Müşteriler.Turu=Patron) }
Personel Adisyonlari|{REPORT TICKET TOTAL:(TEC.Müşteriler.Turu=Personel) }
>Toplam Adisyonlar|[=F(TN('{REPORT TICKET TOTAL}')-TN('{REPORT TICKET TOTAL:(TEC.Giderler.Turu=Nakit Gider) or (TEC.Giderler.Turu=KK Gider)}'))]
[Harcamalar:1, 1]
Nakit Gider Harcamaları|{REPORT TICKET TOTAL:(TEC.Giderler.Turu=Nakit Gider) }
KK Gider Harcamaları|{REPORT TICKET TOTAL:(TEC.Giderler.Turu=KK Gider) }
>Toplam Giderler|{REPORT TICKET TOTAL:(TEC.Giderler.Turu=Nakit Gider) or (TEC.Giderler.Turu=KK Gider)}
This report works well. But now i need the actual customer desire which is the report expenses one by one.
To do this, i inspired from this :
[Satılan Ürünler (Genel) :5, 2, 2,1]
@{REPORT ORDER DETAILS:O.MenuItemName,O.ExactTotal.Sum.desc:(ODI=True):{0}:,}
>{REPORT ORDER DETAILS:O.MenuItemName,O.Quantity.Sum.desc,O.ExactTotal.Sum.desc:(ODI=True) and O.MenuItemName="$1"}
{REPORT ORDER DETAILS:' '+[O.PortionName],O.Quantity.Sum.desc,O.ExactTotal.Sum.desc:(ODI=True) and O.MenuItemName="$1":2}
Code Result
And tried something like this :
[Gider Harcamaları :5, 2, 2,1]
@{REPORT ORDER DETAILS:O.MenuItemName,O.ItemGroup,O.ExactTotal.Sum.desc:(ODI=True):{0}:,}
>{REPORT ORDER DETAILS:O.MenuItemName,O.ItemGroup="GIDERLER",O.ExactTotal.Sum.desc:(ODI=True)}
The result is not good Cuz i actually dont understand this structure.