From b71a1ece47107736bc51f8389b45c57ad81790e3 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Thu, 7 Jul 2011 15:54:01 +0000 Subject: [PATCH] Interventions: Add predefined mail content --- htdocs/core/class/html.formmail.class.php | 7 ++++--- htdocs/fichinter/fiche.php | 8 ++++---- htdocs/langs/ca_ES/other.lang | 3 ++- htdocs/langs/en_US/other.lang | 1 + htdocs/langs/es_ES/other.lang | 5 +++-- htdocs/langs/fr_FR/other.lang | 1 + 6 files changed, 15 insertions(+), 10 deletions(-) diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index ed73eec6016..ebfdded98da 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2010 Juanjo Menent + * Copyright (C) 2010-2011 Juanjo Menent * * 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 @@ -21,7 +21,7 @@ * \file htdocs/core/class/html.formmail.class.php * \ingroup core * \brief Fichier de la classe permettant la generation du formulaire html d'envoi de mail unitaire - * \version $Id: html.formmail.class.php,v 1.27 2011/07/06 22:38:52 eldy Exp $ + * \version $Id: html.formmail.class.php,v 1.28 2011/07/07 15:54:03 simnandez Exp $ */ require_once(DOL_DOCUMENT_ROOT ."/core/class/html.form.class.php"); @@ -542,7 +542,8 @@ class FormMail if ($this->param["models"]=='order_supplier_send') { $defaultmessage=$langs->transnoentities("PredefinedMailContentSendSupplierOrder"); } if ($this->param["models"]=='invoice_supplier_send') { $defaultmessage=$langs->transnoentities("PredefinedMailContentSendSupplierInvoice"); } if ($this->param["models"]=='shipping_send') { $defaultmessage=$langs->transnoentities("PredefinedMailContentSendShipping"); } - + if ($this->param["models"]=='fichinter_send') { $defaultmessage=$langs->transnoentities("PredefinedMailContentSendFichInter"); } + if ($conf->paypal->enabled && $conf->global->PAYPAL_ADD_PAYMENT_URL) { require_once(DOL_DOCUMENT_ROOT."/paypal/lib/paypal.lib.php"); diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 5a255287010..304a7c9b087 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -23,7 +23,7 @@ * \file htdocs/fichinter/fiche.php * \brief Fichier fiche intervention * \ingroup ficheinter - * \version $Id: fiche.php,v 1.167 2011/07/07 09:18:27 simnandez Exp $ + * \version $Id: fiche.php,v 1.168 2011/07/07 15:54:02 simnandez Exp $ */ require("../main.inc.php"); @@ -1122,14 +1122,14 @@ elseif ($fichinterid) $formmail->withtoccsocid=0; $formmail->withtoccc=$conf->global->MAIN_EMAIL_USECCC; $formmail->withtocccsocid=0; - $formmail->withtopic=$langs->trans('SendInterventionRef','__FICHREF__'); + $formmail->withtopic=$langs->trans('SendInterventionRef','__FICHINTERREF__'); $formmail->withfile=1; $formmail->withbody=1; $formmail->withdeliveryreceipt=1; $formmail->withcancel=1; // Tableau des substitutions - $formmail->substit['__FICHREF__']=$object->ref; + $formmail->substit['__FICHINTERREF__']=$object->ref; // Tableau des parametres complementaires $formmail->param['action']='send'; $formmail->param['models']='fichinter_send'; @@ -1184,5 +1184,5 @@ elseif ($fichinterid) $db->close(); -llxFooter('$Date: 2011/07/07 09:18:27 $ - $Revision: 1.167 $'); +llxFooter('$Date: 2011/07/07 15:54:02 $ - $Revision: 1.168 $'); ?> diff --git a/htdocs/langs/ca_ES/other.lang b/htdocs/langs/ca_ES/other.lang index c2a42e687e7..202e3948b9f 100644 --- a/htdocs/langs/ca_ES/other.lang +++ b/htdocs/langs/ca_ES/other.lang @@ -53,8 +53,9 @@ PredefinedMailContentSendOrder=Us adjuntem la comanda __ORDERREF__ \n\nCordialme PredefinedMailContentSendSupplierOrder=Us adjuntem la nostra comanda __ORDERREF__ \n\nCordialment\n\n PredefinedMailContentSendSupplierInvoice=Us adjuntem la factura __FACREF__\n\nCordialment\n\n PredefinedMailContentSendShipping=Us adjuntem l'expedició __SHIPPINGREF__\n\nCordialment\n\n +PredefinedMailContentSendFichInter=Us adjuntem l'intervenció __FICHINTERREF__\n\nCordialment\n\n DemoDesc=Dolibarr és un programari per a la gestió de negocis (professionals o associacions), compost de mòduls funcionals independents i opcionals. Una demostració que inclogui tots aquests mòduls no té sentit perquè no utilitzarà tots els mòduls. A més, té disponibles diversos tipus de perfils de demostració. -ChooseYourDemoProfil=Voleu veure el perfil de demostració que millor correspongui a la seva activitat ... +ChooseYourDemoProfil=Seleccioneu el perfil de demostració que millor correspongui a la seva activitat ... DemoFundation=Gestió de membres d'una associació DemoFundation2=Gestió de membres i tresoreria d'una associació DemoCompanyServiceOnly=Gestió d'un treballador per compte propi realitzant serveis diff --git a/htdocs/langs/en_US/other.lang b/htdocs/langs/en_US/other.lang index 25282ecea09..2a40f944abf 100644 --- a/htdocs/langs/en_US/other.lang +++ b/htdocs/langs/en_US/other.lang @@ -53,6 +53,7 @@ PredefinedMailContentSendOrder=You will find here the order __ORDERREF__\n\nSinc PredefinedMailContentSendSupplierOrder=You will find here our order __ORDERREF__\n\nSincerely\n\n PredefinedMailContentSendSupplierInvoice=You will find here the invoice __FACREF__\n\nSincerely\n\n PredefinedMailContentSendShipping=You will find here the shipping __SHIPPINGREF__\n\nSincerely\n\n +PredefinedMailContentSendFichInter=You will find here the intervention __FICHINTERREF__\n\nSincerely\n\n DemoDesc=Dolibarr is a compact ERP/CRM composed by several functional modules. A demo that includes all modules does not mean anything as this never occurs. So, several demo profiles are available. ChooseYourDemoProfil=Choose the demo profile that match your activity... DemoFundation=Manage members of a foundation diff --git a/htdocs/langs/es_ES/other.lang b/htdocs/langs/es_ES/other.lang index 478704e33d6..647e050d253 100644 --- a/htdocs/langs/es_ES/other.lang +++ b/htdocs/langs/es_ES/other.lang @@ -53,9 +53,10 @@ PredefinedMailContentSendOrder=Le adjuntamos el pedido __ORDERREF__\n\nCordialme PredefinedMailContentSendSupplierOrder=Le adjuntamos nuestro pedido __ORDERREF__\n\nCordialmente\n\n PredefinedMailContentSendSupplierInvoice=Le adjuntamos la factura __FACREF__\n\nCordialmente\n\n PredefinedMailContentSendShipping=Le adjuntamos la expedición __SHIPPINGREF__\n\nCordialmente\n\n +PredefinedMailContentSendFichInter=Le adjuntamos la intervención __FICHINTERREF__\n\nCordialmente\n\n DemoDesc=Dolibarr es un software para la gestión de negocios (profesionales o asociaciones), compuesto de módulos funcionales independientes y opcionales. Una demostración que incluya todos estos módulos no tiene sentido porque no utilizará todos los módulos. Además, tiene disponibles varios tipos de perfiles de demostración. -ChooseYourDemoProfil=Quiere ver el perfil de demostración que mejor corresponda a su actividad... -DemoFundation=Gesstión de miembros de una asociación +ChooseYourDemoProfil=Seleccione el perfil de demostración que mejor corresponda a su actividad... +DemoFundation=Gestión de miembros de una asociación DemoFundation2=Gestión de miembros y tesorería de una asociación DemoCompanyServiceOnly=Gestión de un trabajador por cuenta propia realizando servicios DemoCompanyShopWithCashDesk=Gestión de una tienda con caja diff --git a/htdocs/langs/fr_FR/other.lang b/htdocs/langs/fr_FR/other.lang index ace47ce6bdf..26a04f20d51 100644 --- a/htdocs/langs/fr_FR/other.lang +++ b/htdocs/langs/fr_FR/other.lang @@ -53,6 +53,7 @@ PredefinedMailContentSendOrder=Veuillez trouver ci-joint la commande __ORDERREF_ PredefinedMailContentSendSupplierOrder=Veuillez trouver ci-joint notre commande __ORDERREF__\n\nCordialement\n\n PredefinedMailContentSendSupplierInvoice=Veuillez trouver ci-joint la facture __FACREF__\n\nCordialement\n\n PredefinedMailContentSendShipping=Veuillez trouver ci-joint le bon d'expédition __SHIPPINGREF__\n\nCordialement\n\n +PredefinedMailContentSendFichInter=Veuillez trouver ci-joint le intervention __FICHINTERREF__\n\nCordialement\n\n DemoDesc=Dolibarr est un logiciel de gestion d'activité (professionnelle ou associative) composé de modules fonctionnels indépendants et optionnels. Une démonstration qui inclut tous ces modules n'a pas de sens car les modules ne sont jamais tous utilisés en même temps. Aussi, plusieurs profils type de démo sont disponibles. ChooseYourDemoProfil=Veuillez choisir le profil de démo qui correspond le mieux à votre activité... DemoFundation=Gestion des adhérents d'une association