Hopp over til hovedinnhold

Summing Ticket Billing Charges - Kunnskapsbase / Using Deskpro / Reports - Deskpro Support

Summing Ticket Billing Charges

Forfatterliste
  • Matthew Wray

If you want to run a query to get the sum of all Billing Charges on a ticket, you can do this:


SELECT tickets.subject, DPQL_ALIAS(CONCAT(FLOOR(tickets.charges.charge_time / 3600), ' Hours ', FLOOR(MOD(SUM(tickets.charges.charge_time), 3600) / 60), ' mins'), 'Charge Time')

FROM tickets

GROUP BY tickets.id AS 'ID'

Til hjelp Ikke til hjelp

54 av 131 personer syntes denne siden var til hjelp