Hello,
This is our standard daily-monthly sales report code:
[Daily Sales Report:5, 5, 3.5, 3.5, 3.5, 3.5, 3.5, 3.5, 4, 5]
>Date|Sales|Disc. %|Disc. OR|Tax|Cash|Card|Voucher|Accounts|Total
{REPORT TICKET DETAILS:T.Date,([T.TotalAmount]-[CA.Discount %]-[CA.Discount Amount]-[T.Tax]-[CA.Round]).sum,CA.Discount %.sum,CA.Discount Amount.sum,T.Tax.sum,([PA.Cash (MAIN).sum]+[PA.Cash (POS1).sum]),([PA.Card.Sum]+[PA.Visa.Sum]+[PA.Master.Sum]+[PA.Amex.Sum]),PA.Voucher.Sum,([PA.Customer Account.Sum]+[PA.Talabat.Sum]+[PA.Akeed.Sum]+[PA.TMDone.Sum]),T.TotalAmount.sum:(TS.Status=Paid)}
>>Total |{REPORT TICKET DETAILS:([T.TotalAmount]-[CA.Discount %]-[CA.Discount Amount]-[T.Tax]-[CA.Round]).sum,CA.Discount %.sum,CA.Discount Amount.sum,T.Tax.sum,PA.Cash.sum,([PA.Card.Sum]+[PA.Visa.Sum]+[PA.Master.Sum]+[PA.Amex.Sum]),PA.Voucher.Sum,([PA.Customer Account.Sum]+[PA.Talabat.Sum]+[PA.Akeed.Sum]+[PA.TMDone.Sum]),T.TotalAmount.sum:(TS.Status=Paid)}
[Item Discount %:3, 1, 1, 1]
>Item Name|Price|%|Value
@{REPORT ORDER DETAILS:O.MenuItemName,O.ExactTotal.Sum.desc:(ODI=True):{0}:,}
{REPORT ORDER TAG DETAILS:O.MenuItemName,([O.TotalPrice]-[T.Price]),T.Rate;#,T.Price.desc:(OT=Item Disc. % Tag)}
>Total|{REPORT ORDER TAG DETAILS:([O.TotalPrice]-[T.Price]).sum,T.Price.Sum.desc:(OT=Item Disc. %)}
We offer 3 payment options that appear in POS window: Card, Cash and Customer Account
When selecting payment by card or account the number reflects correctly in the report, however when selecting cash the number is always 0 in the report.
Would you be able to point the reason from the code?
Thank you