diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index ec12242b4e4..2fcdfb7f6a0 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1999,6 +1999,18 @@ if ($action == 'create') } + if ($origin == 'contrat') + { + $langs->load("admin"); + $text=$langs->trans("ToCreateARecurringInvoice"); + $text.=' '.$langs->trans("ToCreateARecurringInvoiceGene", $langs->transnoentitiesnoconv("MenuFinancial"), $langs->transnoentitiesnoconv("BillsCustomers"), $langs->transnoentitiesnoconv("ListOfTemplates")); + if (empty($conf->global->INVOICE_DISABLE_AUTOMATIC_RECURRING_INVOICE)) + { + $text.=' '.$langs->trans("ToCreateARecurringInvoiceGeneAuto", $langs->transnoentitiesnoconv('Module2300Name')); + } + print info_admin($text, 0, 0, 0).'
'; + } + print '
'; print ''; print ''; diff --git a/htdocs/compta/facture/fiche-rec.php b/htdocs/compta/facture/fiche-rec.php index adcdeb64744..469cbf44ca9 100644 --- a/htdocs/compta/facture/fiche-rec.php +++ b/htdocs/compta/facture/fiche-rec.php @@ -309,7 +309,7 @@ if ($action == 'create') // Number max of generation print "".$langs->trans("MaxPeriodNumber").""; - print ""; + print ''; print ""; // Auto validate the invoice diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index c39b585d7b1..855a04d2f39 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -116,7 +116,7 @@ if (count($listofsearchfields)) { if ($i == 0) print ''.$langs->trans("Search").''; print ''; - print ':'; + print ':'; if ($i == 0) print ''; print ''; $i++; diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index ab4ded9f296..493afb9e4cc 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2648,14 +2648,15 @@ function img_searchclear($titlealt = 'default', $other = '') } /** - * Show information for admin users + * Show information for admin users or standard users * * @param string $text Text info * @param integer $infoonimgalt Info is shown only on alt of star picto, otherwise it is show on output after the star picto * @param int $nodiv No div + * @param int $admin 1=Info for admin users. 0=Info for standard users (change only the look) * @return string String with info text */ -function info_admin($text, $infoonimgalt = 0, $nodiv=0) +function info_admin($text, $infoonimgalt = 0, $nodiv=0, $admin=1) { global $conf, $langs; @@ -2664,7 +2665,7 @@ function info_admin($text, $infoonimgalt = 0, $nodiv=0) return img_picto($text, 'info', 'class="hideonsmartphone"'); } - return ($nodiv?'':'
').img_picto($langs->trans('InfoAdmin'), ($nodiv?'info':'info_black'), 'class="hideonsmartphone"').' '.$text.($nodiv?'':'
'); + return ($nodiv?'':'
').img_picto($admin?$langs->trans('InfoAdmin'):$langs->trans('Note'), ($nodiv?'info':'info_black'), 'class="hideonsmartphone"').' '.$text.($nodiv?'':'
'); } diff --git a/htdocs/langs/en_US/bills.lang b/htdocs/langs/en_US/bills.lang index f8102373089..ec04f9e2596 100644 --- a/htdocs/langs/en_US/bills.lang +++ b/htdocs/langs/en_US/bills.lang @@ -470,4 +470,8 @@ PDFCrevetteDescription=Invoice PDF template Crevette. A invoice template if you PDFCrevetteSituationInvoiceLine=Situation N°%s : Inv. N°%s on %s TotalSituationInvoice=Total situation invoiceLineProgressError=Invoice line progress can't be egal or upper the next invoice line -updatePriceNextInvoiceErrorUpdateline=Error : update price on invoice line : %s \ No newline at end of file +updatePriceNextInvoiceErrorUpdateline=Error : update price on invoice line : %s +ToCreateARecurringInvoice=To create a recurring invoice for this contract, first create this draft invoice, then convert it into an invoice template and define the frequency for generation of future invoices. +ToCreateARecurringInvoiceGene=To generate future invoices regularly and manually, just go on menu %s - %s - %s. +ToCreateARecurringInvoiceGeneAuto=If you need to have such invoices generated automatically, ask you administrator to enable and setup module %s. Note that both method (manual and automatic) can be used together with no risk of duplication. + diff --git a/htdocs/langs/fr_FR/companies.lang b/htdocs/langs/fr_FR/companies.lang index f31f2cbd2c4..28188642d59 100644 --- a/htdocs/langs/fr_FR/companies.lang +++ b/htdocs/langs/fr_FR/companies.lang @@ -63,7 +63,7 @@ UserTitle=Titre civilité Surname=Surnom/Pseudo Address=Adresse State=Département/Canton -StateShort=Etat +StateShort=Département Region=Région Country=Pays CountryCode=Code pays