This custom report displays payments by terminal.
@@PaymentsByTerminal
select PT.Name,
SUM(Amount) as Amount
from Payments
inner join PaymentTypes as PT on PT.Id = PaymentTypeId
where TerminalId in (select Id from Terminals where Name = '@1')
and Date > '{Start}' and Date < '{End}'
group by PT.Name
Template
[Payments by Terminal:1, 1]
>Server|
@@PaymentsByTerminal:Server
>Till 1|
@@PaymentsByTerminal:Till 1
This report displays results for 2 Terminals named Server
and Till 1
. You need to rename these terminal names with your terminal names. If you want to add more terminals to report you need to create a new section for it. For example if we want to add a new section for Till 2
terminal, template becomes…
[Payments by Terminal:1, 1]
>Server|
@@PaymentsByTerminal:Server
>Till 1|
@@PaymentsByTerminal:Till 1
>Till 2|
@@PaymentsByTerminal:Till 2
Result
We can insert this report into End of Day report.
100
defines the section of End of Day report and it will append it to the end. Try 90, 80, 70,… etc to display it on upper sections. Leave it 0 to remove it from End of Day report.
Database Tools Import file
Payments by Terminal.zip (641 Bytes)
Needs at least 4.1.50 Version.