Auto calculate sum of just 2 payment types or more on report ticket

hi could anyone help me with this so im trying to get the sum of 2 separate payment types to show on my report tickets

Show us your report syntax? Where in the report do you want it to show?

I mean show a mockup of how you want it to actually look.

?? you mean first pic but then altered to how it should look or second pic with line added where the calculation should be?? srry didnt have much sleep last couple of days brain working very slow atm :sweat_smile:

I mean your actual report when its generated… how do you want it to look.

Here is an example of a field calculation in custom reports.

{REPORT TICKET DETAILS:T.TicketNumber,=[T.TotalAmount]*[EC.Employee.Comission]}

That report is multiplying T.TotalAmount and EC.Employee.Comission

You would need to add an expression at end to filter it to those 2 payment types only though. If you use expression You may not need field calculation… let me see…

thats basicly the prob dont know how start :sweat_smile:


basicly i need the way of how to describe those 2 lines

Ok I got it for you… Try this:

{REPORT PAYMENT DETAILS:P.Amount.Sum:Payment.Amount > 0 && Payment.Name.Contains("espece") OR Payment.Name.Contains("bouteille espece")}

You will need to manually name that… so you might try something like

Combined BLAH|{REPORT PAYMENT DETAILS:P.Amount.Sum:Payment.Amount > 0 && Payment.Name.Contains("espece") OR Payment.Name.Contains("bouteille espece")}

so tried
>Espece|{REPORT PAYMENT DETAILS:P.Type,P.Amount.Sum:Payment.Amount > 0 && Payment.Name.Contains("espece") OR Payment.Name.Contains("bouteille espece")}

and it shows Espece but after that nothing :confounded:

Take P.Type out I changed it since. Also make sure those are correct payment types…I could have misspelled it.

still same thing it shows the BLAH part but after that still nothing checked and its written correctly

Show me your actual report syntax now.

[Payments:2, 1, 2]
{REPORT PAYMENT DETAILS:P.Type,P.Amount.Percent,P.Amount.Sum:Payment.Amount > 0}
>Total|{REPORT PAYMENT DETAILS:P.Amount.Sum:Payment.Amount > 0}
>Espece|{REPORT PAYMENT DETAILS:P.Amount.Sum:Payment.Amount > 0 && Payment.Name.Contains("espece") OR Payment.Name.Contains("bouteille espece")}

Try this:

[Payments:2, 1, 2]
{REPORT PAYMENT DETAILS:P.Type,P.Amount.Percent,P.Amount.Sum:Payment.Amount > 0}
>Total|{REPORT PAYMENT DETAILS:P.Amount.Sum:Payment.Amount > 0}
>>Espece|{REPORT PAYMENT DETAILS:P.Amount.Sum:Payment.Amount > 0 && Payment.Name.Contains("espece") OR Payment.Name.Contains("bouteille espece")}

still no luck it just changed it to lighter grey

It definitely works… something is wrong. Is that the correct spelling of both payment types? No special characters or extra spaces at end by accident?

I just tested it I know it works.

checked it and i even copy pasted it but still no luck

I dunno man it clearly works… You can see I used exact same syntax in mine except I put 2 of my payment types and it worked just fine.

here is a screenshot with 3 payment types used but only summing 2 lines.

could it be that it used the account name to do your calculation

It didnt… but just to ease your mind here ya go.