[Tickets:1,1,1,1,1,1,]
Ticket|Date|Time|User|Total|Tip|
{REPORT PAYMENT DETAILS:T.TicketNumber,T.Date,P.Time,T.User,[T.TotalAmount]-[CA.Tip],CA.Tip:(TS.Status=Paid) AND (TY=Ticket) AND (TU={SETTING:CURRENTUSER})}
||||$[=TN(’{REPORT PAYMENT TOTAL:(TU={SETTING:CURRENTUSER})}’)-TN(’{REPORT CALCULATION TOTAL:(CT=Tip) AND (TU={SETTING:CURRENTUSER})}’)]|${REPORT CALCULATION TOTAL:(CT=Tip) AND (TU={SETTING:CURRENTUSER})}
Does that ticket have multiple payments by chance?
You might need to try using .Sum on a field to consolidate, don’t have a direct answer, possibly might need to use payment with .sum rather than ticket total as at the minute expect 1684 has 3 payments making the report loop 3 times for the ticket and each loop shows the ticket total, using payment would break that down but may show total tip 3 times adding the sum with any lick will consolidate the payments and mean only one loop per ticket.
[Tickets:1,1,1,1,1,1,]
Ticket|Date|Time|User|Total|Tip|
{REPORT PAYMENT DETAILS:T.TicketNumber,T.Date,P.Time,T.User,[T.TotalAmount]-[CA.Tip],CA.Tip:(TS.Status=Paid) AND (TY=Ticket) AND (TU={SETTING:CURRENTUSER})}
||||$[=TN(’{REPORT PAYMENT TOTAL:(TU={SETTING:CURRENTUSER})}’)-TN(’{REPORT CALCULATION TOTAL:(CT=Tip) AND (TU={SETTING:CURRENTUSER})}’)]|${REPORT CALCULATION TOTAL:(CT=Tip) AND (TU={SETTING:CURRENTUSER})}
Sorry, as I said I don’t have a straight answer for you, can see why its happening.
Not fluent on all reports but expect changing T.TotalAmount to T.Payment.Sum or something like that might possibly resolve but do not know exact term to use.
I Have set up my tip reports to show cash and card this is what i am using
But if i split the bill it it duplicates the tip on cash and card
If I change {REPORT PAYMENT DETAILS:T.TicketNumber,[T.TotalAmount]-[CA.Tip],CA.Tip,P.Type:
to {REPORT TICKET DETAILS:T.TicketNumber,[T.TotalAmount]-[CA.Tip],CA.Tip,P.Type:
It wont show me if the ticket is card or cash anymore
can you help
[Server Sales Details: 3,2,3,2,2]
Date:|{DATE}
@{REPORT TICKET DETAILS:T.User.asc::,}
Server:|$1
TOTAL:|||R[=TN(‘{REPORT PAYMENT TOTAL:(TU=$1)}’)-TN(‘{REPORT CALCULATION TOTAL:(CT=Tip) AND (TU=$1)}’)]
Tip:|||R{REPORT CALCULATION TOTAL:(CT=Tip)AND (TU=$1)}
Waiter:|$1
{REPORT PAYMENT DETAILS:T.TicketNumber,[T.TotalAmount]-[CA.Tip],CA.Tip,P.Type:(TS.Status=Paid) AND (TU=$1)}
Total Tip Cash:||{REPORT PAYMENT DETAILS:CA.Tip.Sum:(TS.Status=Paid) AND (TU=$1) AND (PA=Cash)}
Total Tip Card:||{REPORT PAYMENT DETAILS:CA.Tip.Sum:(TS.Status=Paid) AND (TU=$1) AND (PA=Credit Card)}
Total Tips:||{REPORT PAYMENT DETAILS:CA.Tip.Sum:(TS.Status=Paid)}