From 99d948daa9838f700d30a9fdf90435847a142378 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 May 2011 18:51:57 +0000 Subject: [PATCH] New: Automatic events has no percent. --- .../interface_modAgenda_ActionsAuto.class.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/htdocs/includes/triggers/interface_modAgenda_ActionsAuto.class.php b/htdocs/includes/triggers/interface_modAgenda_ActionsAuto.class.php index 8bcf6a645f1..1089a7cd20d 100644 --- a/htdocs/includes/triggers/interface_modAgenda_ActionsAuto.class.php +++ b/htdocs/includes/triggers/interface_modAgenda_ActionsAuto.class.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2005-2011 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -39,8 +39,8 @@ class InterfaceActionsAuto var $desc; /** - * \brief Constructeur. - * \param DB Handler d'acces base + * Constructor. + * @param DB Database handler */ function InterfaceActionsAuto($DB) { @@ -53,8 +53,8 @@ class InterfaceActionsAuto } /** - * \brief Renvoi nom du lot de triggers - * \return string Nom du lot de triggers + * Return name of triggers set + * @return string Name of triggers set */ function getName() { @@ -62,8 +62,8 @@ class InterfaceActionsAuto } /** - * \brief Renvoi descriptif du lot de triggers - * \return string Descriptif du lot de triggers + * Return description of triggers set + * @return string Description of triggers set */ function getDesc() { @@ -71,8 +71,8 @@ class InterfaceActionsAuto } /** - * \brief Renvoi version du lot de triggers - * \return string Version du lot de triggers + * Return version of triggers set + * @return string Version of triggers set */ function getVersion() { @@ -557,7 +557,7 @@ class InterfaceActionsAuto $actioncomm->datef = $now; $actioncomm->durationp = 0; $actioncomm->punctual = 1; - $actioncomm->percentage = 100; + $actioncomm->percentage = -1; // Not applicable $actioncomm->contact = new Contact($this->db,$object->sendtoid); $actioncomm->societe = new Societe($this->db,$object->socid); $actioncomm->author = $user; // User saving action