跳到主要内容

Summing Ticket Billing Charges - 知识库 / Using Deskpro / Reports - Deskpro Support

Summing Ticket Billing Charges

作者列表

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'

有帮助 没有帮助

131 人中 54 人认为这个页面有帮助