[rt-users] Business hour

Emmanuel Lacour elacour at easter-eggs.com
Thu Nov 20 09:21:55 EST 2014


On Wed, Nov 19, 2014 at 05:55:09PM +0000, smail tahir wrote:
>    Could your help me please, 
> 
>    i would like to create a script on resolve, that update custum field
>    called “ Type-Intevention” with one of 2 value
> 
>    Value 1 :  “On Site” : when the resolution date time is in Business hour “
>    Between 09am & 18pm from Monday to Friday
> 
>    Value 2 : “Hors Site” : when the resolution date time is hors Business
>    Hour “ between 18pm and 09am,  Sunday & Saturday
> 


You just have to use the perl module Business::Hours available on CPAN
against the ticket resolution date.

-- 
Easter-eggs                              Spécialiste GNU/Linux
44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
Phone: +33 (0) 1 43 35 00 37    -   Fax: +33 (0) 1 43 35 00 76
mailto:elacour at easter-eggs.com  -   http://www.easter-eggs.com



More information about the rt-users mailing list