CoreBOSBB
Prevent HelpDesk from updating ServiceContract - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: Prevent HelpDesk from updating ServiceContract (/showthread.php?tid=1617)



Prevent HelpDesk from updating ServiceContract - Guido1982 - 11-04-2019

I recently started working with the ServiceContracts module and noticed that when you create a HelpDesk ticket from the ServiceContract, it'll use the time 'spent' to the ticket to update the time spent on the servicecontract. I don't want that, I use Timecontrol to do that. I was hoping this was some workflow on HelpDesk, but it seems it's hidden somewhere.

Do we have a way to control this default behaviour? Or should I create a PR with a Global Variable


RE: Prevent HelpDesk from updating ServiceContract - joebordes - 11-04-2019

that functionality is inherited from vtiger crm:

https://github.com/tsolucio/corebos/blob/master/modules/ServiceContracts/manifest.xml#L543:L552
https://github.com/tsolucio/corebos/blob/master/modules/ServiceContracts/ServiceContractsHandler.php

it is hardcoded with no option to turn off

you could add a global variable to toggle it or a setting screen in service contracts that adds/deletes the events depending on what you need. This would be much better because these evetns are executed on EVERY save of EVERY module.