Hi
This mod let the system consider or not weekends or holidays (any date) for the overdue in the ticket.
I hope you enjoy this MoD as me.
HiThis mod let the system consider or not weekends or holidays (any date) for the overdue in the ticket.I hope you enjoy this MoD as me.
Here is the link for the mod: http://adf.ly/2006600/blog.it-eservice.com/?p=135#more-135(http://adf.ly/2006600/blog.it-eservice.com/?p=135#more-135)
:)
I've been looking for something like this!
I tried installing this mod and now my test osticket wont start.
Is there anyway you can post your working files so I can compare?
post your error plz so i can help you.
edit your main.inc.php to this:
#Don't display errors
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
"Parse error: syntax error, unexpected ',' in /home/matheson/public_html/osticket/include/class.config.php on line 587"
The code on that line is
‘,weekend=’.db_input(isset($var)?1).
"Parse error: syntax error, unexpected ',' in /home/matheson/public_html/osticket/include/class.config.php on line 587"The code on that line is ‘,weekend=’.db_input(isset($var)?1).
‘,weekend=’.db_input(isset($var)?1).
Hi replace all your ‘ with '
Ahh, if feel dumb. I copy pasted from your blog and that's how it copied. Didn't even notice. lol
Now I get another one.
Parse error: syntax error, unexpected T_STRING in /home/matheson/public_html/osticket/include/class.ticket.php on line 125
$days = ($endDate – $startDate) / 86400 + 1;
Hi,
plz double check the code cause in my tickets i dont recive any syntax errors message.
Yeah, I double checked and my line and your code was exactly the same.
I got it working by changing that line to this and it fixed the issue.
$days = (strtotime($endDate) - strtotime($startDate)) / 86400 + 1;
Yeah, I double checked and my line and your code was exactly the same.I got it working by changing that line to this and it fixed the issue.$days = (strtotime($endDate) - strtotime($startDate)) / 86400 + 1;
Nice but i dont get that error but i just realised that your $days = ($endDate – $startDate) / 86400 + 1;
is wrong cause the – is different than -
thats the error you have.
Enjoy.
Thanks again. :)
Thats what I get for copy and paste. lol
Parse error: syntax error, unexpected '
Line 124:
<span style="color: #ff0000;"> $no_full_weeks = floor($days / 7);
There is no include\staff\preference.inc.php file , apart from that I applied everything but is it still not counting weekends while showing Due Date:
Please help !!!!
Thanks,
Sorry to bump an old thread, but has anyone got this or something similar to work on more recent builds (1.9.x)? I need to exclude weekends from the SLAs (and even office hours if possible!). I've seen a few posts about it with no resolution, so I thought I'd comment here before creating my own.Thanks,Sam
This thread hasn't been touched since 2012... so I doubt it. :(