diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 86dacafb387..c7daa5bb7ec 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -891,6 +891,8 @@ MyDashboard=My Dashboard Deductible=Deductible from=from toward=toward +fromhour=from +tohour=to Access=Access SelectAction=Select action SelectTargetUser=Select target user/employee diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index 41dc7e38ed8..d23391436ef 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -1309,10 +1309,12 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser } $arrayfields['author'] = array('label' => $langs->trans("By"), 'checked' => '1'); $arrayfields['t.note'] = array('label' => $langs->trans("Note"), 'checked' => '1'); + $arrayfields['t.tms'] = array('label' => $langs->trans("DateModification"), 'checked' => '0'); if (isModEnabled('service') && !empty($projectstatic->thirdparty) && $projectstatic->thirdparty->id > 0 && $projectstatic->usage_bill_time) { $arrayfields['t.fk_product'] = array('label' => $langs->trans("Product"), 'checked' => '1'); } $arrayfields['t.element_duration'] = array('label' => $langs->trans("Duration"), 'checked' => '1'); + $arrayfields['t.fk_product'] = array('label' => $langs->trans("Product"), 'checked' => '0', 'enabled' => (string) (int) (((getDolGlobalInt('PROJECT_HIDE_TASKS') || !getDolGlobalInt('PROJECT_BILL_TIME_SPENT')) ? 0 : 1) && $projectstatic->usage_bill_time)); $arrayfields['value'] = array('label' => $langs->trans("Value"), 'checked' => '1', 'enabled' => (string) (int) isModEnabled("salaries")); $arrayfields['valuebilled'] = array('label' => $langs->trans("Billed"), 'checked' => '1', 'enabled' => (string) (int) (((getDolGlobalInt('PROJECT_HIDE_TASKS') || !getDolGlobalInt('PROJECT_BILL_TIME_SPENT')) ? 0 : 1) && $projectstatic->usage_bill_time)); // Extra fields @@ -1600,7 +1602,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser } $sql = "SELECT t.rowid, t.fk_element, t.element_date, t.element_datehour, t.element_date_withhour, t.element_duration, t.fk_user, t.note, t.thm,"; - $sql .= " t.fk_product, t.import_key, t.datec, t.tms"; + $sql .= " t.fk_product, t.import_key, t.datec, t.tms,"; $sql .= " pt.rowid as taskid, pt.ref, pt.label, pt.fk_projet,"; $sql .= " u.lastname, u.firstname, u.login, u.photo, u.gender, u.statut as user_status,"; $sql .= " il.fk_facture as invoice_id, inv.fk_statut,"; @@ -1998,6 +2000,10 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser if (!empty($arrayfields['t.note']['checked'])) { print '