From 18324962c5516cf17cf312dcb2204c89c9b2735a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Jan 2020 13:41:07 +0100 Subject: [PATCH 1/8] Better help --- htdocs/langs/en_US/projects.lang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/langs/en_US/projects.lang b/htdocs/langs/en_US/projects.lang index 6d062056d4d..55f70e68b21 100644 --- a/htdocs/langs/en_US/projects.lang +++ b/htdocs/langs/en_US/projects.lang @@ -249,7 +249,7 @@ TimeSpentForInvoice=Time spent OneLinePerUser=One line per user ServiceToUseOnLines=Service to use on lines InvoiceGeneratedFromTimeSpent=Invoice %s has been generated from time spent on project -ProjectBillTimeDescription=Check if you enter timesheet on tasks of project AND you plan to generate invoice(s) from the timesheet to bill the customer of the project (do not check if you plan to create invoice that is not based on entered timesheets). +ProjectBillTimeDescription=Check if you enter timesheet on tasks of project AND you plan to generate invoice(s) from the timesheet to bill the customer of the project (do not check if you plan to create invoice that is not based on entered timesheets). Note: To generate invoice, go on tab 'Time spent' of the project and select lines to include. ProjectFollowOpportunity=Follow opportunity ProjectFollowTasks=Follow tasks UsageOpportunity=Usage: Opportunity From 141ca202692bba34f1831e92c8f679514b7a9f46 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Jan 2020 14:44:53 +0100 Subject: [PATCH 2/8] Trans --- htdocs/holiday/card.php | 6 +++++- htdocs/langs/en_US/holiday.lang | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php index f6484a313aa..b55c5468a09 100644 --- a/htdocs/holiday/card.php +++ b/htdocs/holiday/card.php @@ -1278,9 +1278,13 @@ else print ''; print ''; } + // Nb of days print ''; - print ''.$langs->trans('NbUseDaysCP').''; + print ''; + $htmlhelp = $langs->trans('NbUseDaysCPHelp'); + print $form->textwithpicto($langs->trans('NbUseDaysCP'), $htmlhelp); + print ''; print ''.num_open_day($object->date_debut_gmt, $object->date_fin_gmt, 0, 1, $object->halfday).''; print ''; diff --git a/htdocs/langs/en_US/holiday.lang b/htdocs/langs/en_US/holiday.lang index 69b6a698e1a..e30366286fe 100644 --- a/htdocs/langs/en_US/holiday.lang +++ b/htdocs/langs/en_US/holiday.lang @@ -39,6 +39,7 @@ TypeOfLeaveId=Type of leave ID TypeOfLeaveCode=Type of leave code TypeOfLeaveLabel=Type of leave label NbUseDaysCP=Number of days of vacation consumed +NbUseDaysCPHelp=The calculation takes into account the non working days and the holidays defined in the dictionary NbUseDaysCPShort=Days consumed NbUseDaysCPShortInMonth=Days consumed in month DateStartInMonth=Start date in month From 3bd95c205d9b8a3c57314687cda94bcbee60da37 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Jan 2020 14:54:17 +0100 Subject: [PATCH 3/8] Tooltip to understand the new dictionary of holidays --- htdocs/holiday/card.php | 4 ++++ htdocs/langs/en_US/holiday.lang | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php index b55c5468a09..26a210f40e0 100644 --- a/htdocs/holiday/card.php +++ b/htdocs/holiday/card.php @@ -1283,6 +1283,10 @@ else print ''; print ''; $htmlhelp = $langs->trans('NbUseDaysCPHelp'); + $includesaturday = (isset($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SATURDAY) ? $conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SATURDAY : 1); + $includesunday = (isset($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SUNDAY) ? $conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SUNDAY : 1); + if ($includesaturday) $htmlhelp.='
'.$langs->trans("DayIsANonWorkingDay", $langs->trans("Saturday")); + if ($includesunday) $htmlhelp.='
'.$langs->trans("DayIsANonWorkingDay", $langs->trans("Sunday")); print $form->textwithpicto($langs->trans('NbUseDaysCP'), $htmlhelp); print ''; print ''.num_open_day($object->date_debut_gmt, $object->date_fin_gmt, 0, 1, $object->halfday).''; diff --git a/htdocs/langs/en_US/holiday.lang b/htdocs/langs/en_US/holiday.lang index e30366286fe..82de49f9c5f 100644 --- a/htdocs/langs/en_US/holiday.lang +++ b/htdocs/langs/en_US/holiday.lang @@ -39,9 +39,10 @@ TypeOfLeaveId=Type of leave ID TypeOfLeaveCode=Type of leave code TypeOfLeaveLabel=Type of leave label NbUseDaysCP=Number of days of vacation consumed -NbUseDaysCPHelp=The calculation takes into account the non working days and the holidays defined in the dictionary +NbUseDaysCPHelp=The calculation takes into account the non working days and the holidays defined in the dictionary. NbUseDaysCPShort=Days consumed NbUseDaysCPShortInMonth=Days consumed in month +DayIsANonWorkingDay=%s is a non working day DateStartInMonth=Start date in month DateEndInMonth=End date in month EditCP=Edit From ed0e4b53d4087587d4d1c5cb8058aa9aa531d20c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Jan 2020 16:11:31 +0100 Subject: [PATCH 4/8] Fix error in mysqldump --- htdocs/admin/tools/dolibarr_export.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/tools/dolibarr_export.php b/htdocs/admin/tools/dolibarr_export.php index 26906735d68..1500dd0dc4d 100644 --- a/htdocs/admin/tools/dolibarr_export.php +++ b/htdocs/admin/tools/dolibarr_export.php @@ -81,9 +81,9 @@ $type=$db->type; $help_url='EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad'; llxHeader('', '', $help_url); +print '