Doc
This commit is contained in:
parent
695a681c14
commit
5a6e46a9c3
@ -241,4 +241,5 @@ TimeSpentForInvoice=Time spent
|
|||||||
GenerateInvoice=Generate invoice
|
GenerateInvoice=Generate invoice
|
||||||
OneLinePerUser=One line per user
|
OneLinePerUser=One line per user
|
||||||
ServiceToUseOnLines=Service to use on lines
|
ServiceToUseOnLines=Service to use on lines
|
||||||
InvoiceGeneratedFromTimeSpent=Invoice %s has been generated from time spent on project
|
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.
|
||||||
@ -622,7 +622,10 @@ if ($action == 'create' && $user->rights->projet->creer)
|
|||||||
// Bill time
|
// Bill time
|
||||||
if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_BILL_TIME_SPENT))
|
if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_BILL_TIME_SPENT))
|
||||||
{
|
{
|
||||||
print '<tr><td>'.$langs->trans("BillTime").'</td>';
|
print '<tr><td>';
|
||||||
|
$htmltext = $langs->trans("ProjectBillTimeDescription");
|
||||||
|
print $form->textwithpicto($langs->trans("BillTime"), $htmltext);
|
||||||
|
print '</td>';
|
||||||
print '<td><input type="checkbox" name="bill_time"'.(GETPOST('bill_time', 'alpha')!=''?' checked="checked"':'').'"></td>';
|
print '<td><input type="checkbox" name="bill_time"'.(GETPOST('bill_time', 'alpha')!=''?' checked="checked"':'').'"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
@ -857,7 +860,10 @@ elseif ($object->id > 0)
|
|||||||
// Bill time
|
// Bill time
|
||||||
if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_BILL_TIME_SPENT))
|
if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_BILL_TIME_SPENT))
|
||||||
{
|
{
|
||||||
print '<tr><td>'.$langs->trans("BillTime").'</td>';
|
print '<tr><td>';
|
||||||
|
$htmltext = $langs->trans("ProjectBillTimeDescription");
|
||||||
|
print $form->textwithpicto($langs->trans("BillTime"), $htmltext);
|
||||||
|
print '</td>';
|
||||||
print '<td><input type="checkbox" name="bill_time"'.((GETPOSTISSET('bill_time')?GETPOST('bill_time', 'alpha'):$object->bill_time) ? ' checked="checked"' : '').'"></td>';
|
print '<td><input type="checkbox" name="bill_time"'.((GETPOSTISSET('bill_time')?GETPOST('bill_time', 'alpha'):$object->bill_time) ? ' checked="checked"' : '').'"></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
@ -987,7 +993,10 @@ elseif ($object->id > 0)
|
|||||||
// Bill time
|
// Bill time
|
||||||
if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_BILL_TIME_SPENT))
|
if (empty($conf->global->PROJECT_HIDE_TASKS) && ! empty($conf->global->PROJECT_BILL_TIME_SPENT))
|
||||||
{
|
{
|
||||||
print '<tr><td>'.$langs->trans("BillTime").'</td>';
|
print '<tr><td>';
|
||||||
|
$htmltext = $langs->trans("ProjectBillTimeDescription");
|
||||||
|
print $form->textwithpicto($langs->trans("BillTime"), $htmltext);
|
||||||
|
print '</td>';
|
||||||
print '<td>'.yn($object->bill_time).'</td>';
|
print '<td>'.yn($object->bill_time).'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user