From 5a6e46a9c3261bc0ba45563a09d30e05ff14a5d4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 3 Feb 2019 21:40:23 +0100 Subject: [PATCH] Doc --- htdocs/langs/en_US/projects.lang | 3 ++- htdocs/projet/card.php | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/htdocs/langs/en_US/projects.lang b/htdocs/langs/en_US/projects.lang index 97eddffc26e..e028d07fcb8 100644 --- a/htdocs/langs/en_US/projects.lang +++ b/htdocs/langs/en_US/projects.lang @@ -241,4 +241,5 @@ TimeSpentForInvoice=Time spent GenerateInvoice=Generate invoice OneLinePerUser=One line per user ServiceToUseOnLines=Service to use on lines -InvoiceGeneratedFromTimeSpent=Invoice %s has been generated from time spent on project \ No newline at end of file +InvoiceGeneratedFromTimeSpent=Invoice %s has been generated from time spent on project +ProjectBillTimeDescription=Check if you enter timesheet on project and plan to generate invoice from the timesheet to invoice the customer of project. \ No newline at end of file diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index dd9a2add745..6eecffae712 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -622,7 +622,10 @@ if ($action == 'create' && $user->rights->projet->creer) // Bill time if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_BILL_TIME_SPENT)) { - print ''.$langs->trans("BillTime").''; + print ''; + $htmltext = $langs->trans("ProjectBillTimeDescription"); + print $form->textwithpicto($langs->trans("BillTime"), $htmltext); + print ''; print ''; print ''; } @@ -857,7 +860,10 @@ elseif ($object->id > 0) // Bill time if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_BILL_TIME_SPENT)) { - print ''.$langs->trans("BillTime").''; + print ''; + $htmltext = $langs->trans("ProjectBillTimeDescription"); + print $form->textwithpicto($langs->trans("BillTime"), $htmltext); + print ''; print 'bill_time) ? ' checked="checked"' : '').'">'; print ''; } @@ -987,7 +993,10 @@ elseif ($object->id > 0) // Bill time if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_BILL_TIME_SPENT)) { - print ''.$langs->trans("BillTime").''; + print ''; + $htmltext = $langs->trans("ProjectBillTimeDescription"); + print $form->textwithpicto($langs->trans("BillTime"), $htmltext); + print ''; print ''.yn($object->bill_time).''; print ''; }