Insert value into time_accounting in database

Moderator: crythias

Post Reply
josiahsequoyah
Znuny newbie
Posts: 7
Joined: 26 Sep 2017, 21:53
Znuny Version: 6.0.0.beta1
Real Name: Josiah Huff
Company: Automation Concepts

Insert value into time_accounting in database

Post by josiahsequoyah »

So I've created a simple start/stop/reset javascript timer that I use on the AgentTicketZoom page under the TicketInformation column to just keep track of how long we work on tickets. I would like to add a button maybe called log that would send the time in the timer to the Accounted Time field. In the database I saw that it records to a table called time_accounting. Does anyone know what code might be able to accomplish this? I don't need to know how to create the button, just how to "onClick" send the current counted time to the database. I'll add a visual to help make sense of my words.
You do not have the required permissions to view the files attached to this post.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Insert value into time_accounting in database

Post by jojo »

times need to set to an article.(e.g.note or email)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
josiahsequoyah
Znuny newbie
Posts: 7
Joined: 26 Sep 2017, 21:53
Znuny Version: 6.0.0.beta1
Real Name: Josiah Huff
Company: Automation Concepts

Re: Insert value into time_accounting in database

Post by josiahsequoyah »

Thanks for the help!
I'm sorry though, not sure I'm following you.
Post Reply