From dd94745e3377b3c7d6e8881291aa2f4ca407116d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 Dec 2021 20:57:14 +0100 Subject: [PATCH 1/7] Fix css for rtl languages --- htdocs/langs/en_US/main.lang | 2 +- htdocs/main.inc.php | 6 +++--- htdocs/theme/eldy/dropdown.inc.php | 2 +- htdocs/theme/eldy/global.inc.php | 9 ++++++--- htdocs/theme/md/dropdown.inc.php | 2 +- htdocs/theme/md/style.css.php | 24 ++++++++++++++---------- 6 files changed, 26 insertions(+), 19 deletions(-) diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 06acd399d25..c59da9aabec 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -88,7 +88,7 @@ FileWasNotUploaded=A file is selected for attachment but was not yet uploaded. C NbOfEntries=No. of entries GoToWikiHelpPage=Read online help (Internet access needed) GoToHelpPage=Read help -DedicatedPageAvailable=There is a dedicated help page related to your current screen +DedicatedPageAvailable=Dedicated help page related to your current screen HomePage=Home Page RecordSaved=Record saved RecordDeleted=Record deleted diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index dec6e389156..acd2239e07f 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1932,9 +1932,9 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead // Link to help pages if ($helpbaseurl && $helppage) { $text = ''; - $title = $langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage' : 'GoToHelpPage').'...'; + $title = $langs->trans($mode == 'wiki' ? 'GoToWikiHelpPage' : 'GoToHelpPage').', '; if ($mode == 'wiki') { - $title .= '
'.$langs->trans("PageWiki").' '.dol_escape_htmltag('"'.strtr($helppage, '_', ' ').'"'); + $title .= '
'.img_picto('', 'globe', 'class="pictofixedwidth"').$langs->trans("PageWiki").' '.dol_escape_htmltag('"'.strtr($helppage, '_', ' ').'"'); if ($helppresent) { $title .= ' ('.$langs->trans("DedicatedPageAvailable").')'; } else { @@ -1949,7 +1949,7 @@ function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead } $text .= '">'; $text .= ''; - $text .= ''; + $text .= ''; $text .= ''; $toprightmenu .= $form->textwithtooltip('', $title, 2, 1, $text, 'login_block_elem', 2); } diff --git a/htdocs/theme/eldy/dropdown.inc.php b/htdocs/theme/eldy/dropdown.inc.php index dcf7ca787b7..81734c817b8 100644 --- a/htdocs/theme/eldy/dropdown.inc.php +++ b/htdocs/theme/eldy/dropdown.inc.php @@ -359,7 +359,7 @@ a.top-menu-dropdown-link { -webkit-font-smoothing: antialiased; text-align:center; text-decoration:none; - margin-right: 5px; + margin-: 5px; display: inline-block; content: "\f0da"; /* color: rgba(0,0,0,0.3); */ diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 5033e90b858..503143d02c1 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -2932,14 +2932,17 @@ a.help:link, a.help:visited, a.help:hover, a.help:active, span.help { /* color: #f3e4ac !important; */ } .helppresentcircle { + /* color: var(--colorbackhmenu1); - filter: invert(0.8); - margin-: -7px; + filter: invert(0.5); + */ + color: var(--colortextbackhmenu); + margin-: -4px; display: inline-block; - margin-top: -10px; font-size: x-small; vertical-align: super; opacity: 0.95; + transform: rotate(); } .vmenu div.blockvmenufirst, .vmenu div.blockvmenulogo, .vmenu div.blockvmenusearchphone, .vmenu div.blockvmenubookmarks diff --git a/htdocs/theme/md/dropdown.inc.php b/htdocs/theme/md/dropdown.inc.php index 15888783b37..1aec654410f 100644 --- a/htdocs/theme/md/dropdown.inc.php +++ b/htdocs/theme/md/dropdown.inc.php @@ -365,7 +365,7 @@ a.top-menu-dropdown-link { -webkit-font-smoothing: antialiased; text-align:center; text-decoration:none; - margin-right: 5px; + margin-: 5px; display: inline-block; content: "\f0da"; color: rgba(0,0,0,0.3); diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index ddd7c28b542..e0c63983d0d 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -1834,7 +1834,7 @@ td.showDragHandle { width: 100%; padding-bottom: 20px; - padding-left: 229px; + padding-: 229px; padding-top: 16px; } @@ -1860,13 +1860,13 @@ td.showDragHandle { display: none; background: var(--colorbackvmenu1); - border-right: 1px solid rgba(0,0,0,0.2); + border-: 1px solid rgba(0,0,0,0.2); box-shadow: 3px 0 6px -2px #eee; bottom: 0; color: #333; display: block; font-family: "RobotoDraft","Roboto",sans-serif; - left: 0; + : 0; browser->layout, array('phone', 'tablet')) && empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) { } else { ?> @@ -1920,12 +1920,13 @@ td.showDragHandle { } body.sidebar-collapse .side-nav-vert, body.sidebar-collapse #id-right { - margin-left: 0;padding-left:0 + margin-left: 0; + padding-left:0 } .side-nav-vert { - margin-left: 228px; + margin-: 228px; } /* body.sidebar-collapse .side-nav, body.sidebar-collapse .login_block_other, body.sidebar-collapse #topmenu-login-dropdown */ @@ -1991,7 +1992,7 @@ div.backgroundsemitransparent { #id-right { - padding-left: 0 ! important; + padding-: 0 ! important; } #id-left { z-index: 91; @@ -2941,7 +2942,7 @@ form[name="addtime"] img.userphoto { div.vmenu, td.vmenu { margin-: 2px; position: relative; - float: left; + float: ; padding: 0px; padding-bottom: 0px; padding-top: 0px; @@ -2949,7 +2950,7 @@ div.vmenu, td.vmenu { } .vmenu { - margin-left: 4px; + margin-: 4px; display: none; @@ -2993,14 +2994,17 @@ a.help:link, a.help:visited, a.help:hover, a.help:active, span.help { } .helppresentcircle { + /* color: var(--colorbackhmenu1); filter: invert(0.5); - margin-left: -7px; + */ + color: var(--colortextbackhmenu); + margin-left: -4px; display: inline-block; - margin-top: -10px; font-size: x-small; vertical-align: super; opacity: 0.95; + transform: rotate(); } div.blockvmenulogo From 0fd386a4504c953b519074c4e39eab01604bc64a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 23 Dec 2021 11:32:12 +0100 Subject: [PATCH 2/7] css --- htdocs/install/default.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/install/default.css b/htdocs/install/default.css index da5a19a63dc..6a0e84ce20a 100644 --- a/htdocs/install/default.css +++ b/htdocs/install/default.css @@ -40,6 +40,10 @@ display: inline-block; } +.no-bottom { + padding-bottom: 0; +} + .small { font-size: 0.9em; } From 4eb9a7625a2628c8062bacbe0aca7d42d608003a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 23 Dec 2021 15:12:35 +0100 Subject: [PATCH 3/7] Fix notification setup page. --- htdocs/admin/notification.php | 133 +++++++++++++++-------------- htdocs/core/class/notify.class.php | 10 +++ htdocs/langs/en_US/admin.lang | 6 +- 3 files changed, 85 insertions(+), 64 deletions(-) diff --git a/htdocs/admin/notification.php b/htdocs/admin/notification.php index 1b06e9dd25e..db79a1503c9 100644 --- a/htdocs/admin/notification.php +++ b/htdocs/admin/notification.php @@ -204,6 +204,18 @@ if (!empty($conf->global->NOTIFICATION_EMAIL_FROM) && !isValidEmail($conf->globa print ''; print ''; +print ''; +print $langs->trans("NotificationDisableConfirmMessageContact").''; +print ''; +if ($conf->use_javascript_ajax) { + print ajax_constantonoff('NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE_CONTACT'); +} else { + $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes")); + print $form->selectarray("NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE_CONTACT", $arrval, $conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE_CONTACT); +} +print ''; +print ''; + print ''; print $langs->trans("NotificationDisableConfirmMessageUser").''; print ''; @@ -215,6 +227,7 @@ if ($conf->use_javascript_ajax) { } print ''; print ''; + print ''; print $langs->trans("NotificationDisableConfirmMessageFix").''; print ''; @@ -241,79 +254,68 @@ print ''; print ''; // Notification per contacts -$title = $langs->trans("ListOfNotificationsPerUser"); -if (!empty($conf->societe->enabled)) { - $title = $langs->trans("ListOfNotificationsPerUserOrContact"); -} -print load_fiche_titre($title, '', ''); +$title = $langs->trans("TemplatesForNotifications"); + +print load_fiche_titre($title, '', 'email'); // Load array of available notifications $notificationtrigger = new InterfaceNotification($db); $listofnotifiedevents = $notificationtrigger->getListOfManagedEvents(); +// Editing global variables not related to a specific theme +$constantes = array(); +foreach ($listofnotifiedevents as $notifiedevent) { + $label = $langs->trans("Notify_".$notifiedevent['code']); //!=$langs->trans("Notify_".$notifiedevent['code'])?$langs->trans("Notify_".$notifiedevent['code']):$notifiedevent['label']; + $elementLabel = $langs->trans(ucfirst($notifiedevent['elementtype'])); -if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { - // Editing global variables not related to a specific theme - $constantes = array(); - foreach ($listofnotifiedevents as $notifiedevent) { - $label = $langs->trans("Notify_".$notifiedevent['code']); //!=$langs->trans("Notify_".$notifiedevent['code'])?$langs->trans("Notify_".$notifiedevent['code']):$notifiedevent['label']; - $elementLabel = $langs->trans(ucfirst($notifiedevent['elementtype'])); - - if ($notifiedevent['elementtype'] == 'order_supplier') { - $elementLabel = $langs->trans('SupplierOrder'); - } elseif ($notifiedevent['elementtype'] == 'propal') { - $elementLabel = $langs->trans('Proposal'); - } elseif ($notifiedevent['elementtype'] == 'facture') { - $elementLabel = $langs->trans('Bill'); - } elseif ($notifiedevent['elementtype'] == 'commande') { - $elementLabel = $langs->trans('Order'); - } elseif ($notifiedevent['elementtype'] == 'ficheinter') { - $elementLabel = $langs->trans('Intervention'); - } elseif ($notifiedevent['elementtype'] == 'shipping') { - $elementLabel = $langs->trans('Shipping'); - } elseif ($notifiedevent['elementtype'] == 'expensereport' || $notifiedevent['elementtype'] == 'expense_report') { - $elementLabel = $langs->trans('ExpenseReport'); - } - - if ($notifiedevent['elementtype'] == 'propal') { - $model = 'propal_send'; - } elseif ($notifiedevent['elementtype'] == 'commande') { - $model = 'order_send'; - } elseif ($notifiedevent['elementtype'] == 'facture') { - $model = 'facture_send'; - } elseif ($notifiedevent['elementtype'] == 'shipping') { - $model = 'shipping_send'; - } elseif ($notifiedevent['elementtype'] == 'ficheinter') { - $model = 'fichinter_send'; - } elseif ($notifiedevent['elementtype'] == 'expensereport') { - $model = 'expensereport_send'; - } elseif ($notifiedevent['elementtype'] == 'order_supplier') { - $model = 'order_supplier_send'; - // } elseif ($notifiedevent['elementtype'] == 'invoice_supplier') $model = 'invoice_supplier_send'; - } elseif ($notifiedevent['elementtype'] == 'member') { - $model = 'member'; - } - - $constantes[$notifiedevent['code'].'_TEMPLATE'] = array('type'=>'emailtemplate:'.$model, 'label'=>$label); + if ($notifiedevent['elementtype'] == 'order_supplier') { + $elementLabel = $langs->trans('SupplierOrder'); + } elseif ($notifiedevent['elementtype'] == 'propal') { + $elementLabel = $langs->trans('Proposal'); + } elseif ($notifiedevent['elementtype'] == 'facture') { + $elementLabel = $langs->trans('Bill'); + } elseif ($notifiedevent['elementtype'] == 'commande') { + $elementLabel = $langs->trans('Order'); + } elseif ($notifiedevent['elementtype'] == 'ficheinter') { + $elementLabel = $langs->trans('Intervention'); + } elseif ($notifiedevent['elementtype'] == 'shipping') { + $elementLabel = $langs->trans('Shipping'); + } elseif ($notifiedevent['elementtype'] == 'expensereport' || $notifiedevent['elementtype'] == 'expense_report') { + $elementLabel = $langs->trans('ExpenseReport'); } - $helptext = ''; - form_constantes($constantes, 3, $helptext, 'EmailTemplate'); - - print '
'; - print '* '.$langs->trans("GoOntoUserCardToAddMore").'
'; - if (!empty($conf->societe->enabled)) { - print '** '.$langs->trans("GoOntoContactCardToAddMore").'
'; + if ($notifiedevent['elementtype'] == 'propal') { + $model = 'propal_send'; + } elseif ($notifiedevent['elementtype'] == 'commande') { + $model = 'order_send'; + } elseif ($notifiedevent['elementtype'] == 'facture') { + $model = 'facture_send'; + } elseif ($notifiedevent['elementtype'] == 'shipping') { + $model = 'shipping_send'; + } elseif ($notifiedevent['elementtype'] == 'ficheinter') { + $model = 'fichinter_send'; + } elseif ($notifiedevent['elementtype'] == 'expensereport') { + $model = 'expensereport_send'; + } elseif ($notifiedevent['elementtype'] == 'order_supplier') { + $model = 'order_supplier_send'; + // } elseif ($notifiedevent['elementtype'] == 'invoice_supplier') $model = 'invoice_supplier_send'; + } elseif ($notifiedevent['elementtype'] == 'member') { + $model = 'member'; } - print '
'; - print $form->buttonsSaveCancel("Save", ''); + $constantes[$notifiedevent['code'].'_TEMPLATE'] = array('type'=>'emailtemplate:'.$model, 'label'=>$label); +} + +$helptext = ''; +form_constantes($constantes, 3, $helptext, 'EmailTemplate'); + +print $form->buttonsSaveCancel("Save", ''); + +/* } else { print ''; print ''; print ''; - /*print ''; - print '';*/ //print ''; print "\n"; @@ -359,6 +361,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { } print ''; } +*/ print ''; @@ -371,7 +374,15 @@ print ''; print ''; print ''; -print load_fiche_titre($langs->trans("ListOfFixedNotifications"), '', ''); +print load_fiche_titre($langs->trans("ListOfFixedNotifications"), '', 'email'); + +print '
'; +print $langs->trans("Note").':
'; +print '* '.$langs->trans("GoOntoUserCardToAddMore").'
'; +if (!empty($conf->societe->enabled)) { + print '** '.$langs->trans("GoOntoContactCardToAddMore").'
'; +} +print '
'; print '
'.$langs->trans("Label").''.$langs->trans("Code").''.$langs->trans("Label").''.$langs->trans("NbOfTargetedContacts").'
'; print ''; @@ -488,8 +499,6 @@ foreach ($listofnotifiedevents as $notifiedevent) { } print '
'; -print '
'; - print $form->buttonsSaveCancel("Save", ''); print ''; diff --git a/htdocs/core/class/notify.class.php b/htdocs/core/class/notify.class.php index a741af3d867..85b622f62ad 100644 --- a/htdocs/core/class/notify.class.php +++ b/htdocs/core/class/notify.class.php @@ -108,7 +108,9 @@ class Notify global $conf, $langs; $langs->load("mails"); + // Get full list of all notifications subscribed for $action, $socid and $object $listofnotiftodo = $this->getNotificationsArray($action, $socid, $object, 0); + if (!empty($conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE_USER)) { foreach ($listofnotiftodo as $val) { if ($val['type'] == 'touser') { @@ -117,6 +119,14 @@ class Notify } } } + if (!empty($conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE_CONTACT)) { + foreach ($listofnotiftodo as $val) { + if ($val['type'] == 'tocontact') { + unset($listofnotiftodo[$val['email']]); + //$listofnotiftodo = array_merge($listofnotiftodo); + } + } + } if (!empty($conf->global->NOTIFICATION_EMAIL_DISABLE_CONFIRM_MESSAGE_FIX)) { foreach ($listofnotiftodo as $val) { if ($val['type'] == 'tofixedemail') { diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index b4ce76ad884..23cb14faae1 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -1712,8 +1712,9 @@ MailingDelay=Seconds to wait after sending next message NotificationSetup=Email Notification module setup NotificationEMailFrom=Sender email (From) for emails sent by the Notifications module FixedEmailTarget=Recipient -NotificationDisableConfirmMessageFix=Disable the information about targets into the confirmation message before sending the notifications to the global emails -NotificationDisableConfirmMessageUser=Disable the information about targets into the confirmation message before sending the notifications to the user emails +NotificationDisableConfirmMessageContact=Hide the list of recipients (subscribed as contact) of notifications into the confirmation message +NotificationDisableConfirmMessageUser=Hide the list of recipients (subscribed as user) of notifications into the confirmation message +NotificationDisableConfirmMessageFix=Hide the list of recipients (subscribed as global email) of notifications into the confirmation message ##### Sendings ##### SendingsSetup=Shipping module setup SendingsReceiptModel=Sending receipt model @@ -1905,6 +1906,7 @@ ExpenseReportsRulesSetup=Setup of module Expense Reports - Rules ExpenseReportNumberingModules=Expense reports numbering module NoModueToManageStockIncrease=No module able to manage automatic stock increase has been activated. Stock increase will be done on manual input only. YouMayFindNotificationsFeaturesIntoModuleNotification=You may find options for email notifications by enabling and configuring the module "Notification". +TemplatesForNotifications=Templates for notifications ListOfNotificationsPerUser=List of automatic notifications per user* ListOfNotificationsPerUserOrContact=List of possible automatic notifications (on business event) available per user* or per contact** ListOfFixedNotifications=List of automatic fixed notifications From 3fc0205d0bf6421b68f9561c4e94d5c360fca96c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 25 Dec 2021 12:44:46 +0100 Subject: [PATCH 4/7] Fix responsive --- htdocs/adherents/type.php | 18 +++++------------- htdocs/core/class/html.formfile.class.php | 2 +- htdocs/public/onlinesign/newonlinesign.php | 6 +++--- htdocs/public/payment/newpayment.php | 3 ++- htdocs/theme/eldy/global.inc.php | 10 +++++++++- htdocs/theme/md/style.css.php | 10 +++++++++- 6 files changed, 29 insertions(+), 20 deletions(-) diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index 628313d5fe9..1d788457abe 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -292,7 +292,7 @@ if (!$rowid && $action != 'create' && $action != 'edit') { $membertype->amount = $objp->amount; print ''; - print ''; + print ''; print $membertype->getNomUrl(1); //'.img_object($langs->trans("ShowType"),'group').' '.$objp->rowid.' print ''; @@ -340,12 +340,7 @@ if (!$rowid && $action != 'create' && $action != 'edit') { } } - -/* ************************************************************************** */ -/* */ -/* Creation mode */ -/* */ -/* ************************************************************************** */ +// Creation if ($action == 'create') { $object = new AdherentType($db); @@ -416,11 +411,7 @@ if ($action == 'create') { print "\n"; } -/* ************************************************************************** */ -/* */ -/* View mode */ -/* */ -/* ************************************************************************** */ +// View if ($rowid > 0) { if ($action != 'edit') { $object = new AdherentType($db); @@ -455,8 +446,9 @@ if ($rowid > 0) { print yn($object->subscription); print ''; + // Amount print ''.$langs->trans("Amount").''; - print ((is_null($object->amount) || $object->amount === '') ? '' : price($object->amount)); + print ((is_null($object->amount) || $object->amount === '') ? '' : ''.price($object->amount).''); print ''; print ''.$langs->trans("VoteAllowed").''; diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 7f9e28f5b4a..3539348e35a 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -761,7 +761,7 @@ class FormFile $arraykeys = array_keys($modellist); $modelselected = $arraykeys[0]; } - $morecss = 'maxwidth200'; + $morecss = 'minwidth75 maxwidth200'; if ($conf->browser->layout == 'phone') { $morecss = 'maxwidth100'; } diff --git a/htdocs/public/onlinesign/newonlinesign.php b/htdocs/public/onlinesign/newonlinesign.php index 14a08c675ce..b6638daba51 100644 --- a/htdocs/public/onlinesign/newonlinesign.php +++ b/htdocs/public/onlinesign/newonlinesign.php @@ -195,7 +195,7 @@ print ''; print "\n"; print ''."\n"; -print ''."\n"; +print '
'."\n"; // Show logo (search order: logo defined by ONLINE_SIGN_LOGO_suffix, then ONLINE_SIGN_LOGO_, then small company logo, large company logo, theme logo, common logo) // Define logo and logosmall @@ -358,7 +358,7 @@ if ($action == "dosign" && empty($cancel)) { print ' + + + + + + From 27134a1f914c013dd43dd75984ec71e7bd5adc24 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 Dec 2021 15:44:04 +0100 Subject: [PATCH 7/7] Fix position of menu --- htdocs/core/menus/init_menu_auguria.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/menus/init_menu_auguria.sql b/htdocs/core/menus/init_menu_auguria.sql index b032ba5beb4..3b173cecb26 100644 --- a/htdocs/core/menus/init_menu_auguria.sql +++ b/htdocs/core/menus/init_menu_auguria.sql @@ -283,6 +283,8 @@ insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, left insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->accounting->enabled && $conf->expensereport->enabled && empty($conf->global->ACCOUNTING_DISABLE_BINDING_ON_EXPENSEREPORTS)', __HANDLER__, 'left', 2420__+MAX_llx_menu__, 'accountancy', 'accountancy_dispatch_expensereport', 2400__+MAX_llx_menu__, '/accountancy/expensereport/index.php?mainmenu=accountancy&leftmenu=accountancy_dispatch_expensereport', 'ExpenseReportsVentilation', 1, 'accountancy', '$user->rights->accounting->bind->write', '', 0, 5, __ENTITY__); insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->accounting->enabled && $conf->expensereport->enabled && empty($conf->global->ACCOUNTING_DISABLE_BINDING_ON_EXPENSEREPORTS) && $leftmenu=="accountancy_dispatch_expensereport"', __HANDLER__, 'left', 2421__+MAX_llx_menu__, 'accountancy', '', 2420__+MAX_llx_menu__, '/accountancy/expensereport/list.php?mainmenu=accountancy', 'ToDispatch', 2, 'accountancy', '$user->rights->accounting->bind->write', '', 0, 6, __ENTITY__); insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->accounting->enabled && $conf->expensereport->enabled && empty($conf->global->ACCOUNTING_DISABLE_BINDING_ON_EXPENSEREPORTS) && $leftmenu=="accountancy_dispatch_expensereport"', __HANDLER__, 'left', 2422__+MAX_llx_menu__, 'accountancy', '', 2420__+MAX_llx_menu__, '/accountancy/expensereport/lines.php?mainmenu=accountancy', 'Dispatched', 2, 'accountancy', '$user->rights->accounting->bind->write', '', 0, 7, __ENTITY__); +-- Export accounting documents +insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->comptabilite->enabled || $conf->accounting->enabled', __HANDLER__, 'left', 2436__+MAX_llx_menu__, 'accountancy', 'accountancy_files', 2400__+MAX_llx_menu__, '/compta/accounting-files.php?mainmenu=accountancy&leftmenu=accountancy_files', 'AccountantFiles', 1, 'accountancy', '$user->rights->compta->resultat->lire || $user->rights->accounting->mouvements->lire', '', 0, 16, __ENTITY__); -- Journals --insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->accounting->enabled', __HANDLER__, 'left', 2705__+MAX_llx_menu__, 'accountancy', '', 2400__+MAX_llx_menu__, '', 'Journalization', 1, 'main', '$user->rights->accounting->comptarapport->lire', '', 0, 1, __ENTITY__); --insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->accounting->enabled', __HANDLER__, 'left', 2707__+MAX_llx_menu__, 'accountancy', '', 2705__+MAX_llx_menu__, '/accountancy/journal/bankjournal.php?mainmenu=accountancy&leftmenu=accountancy_journal&id_journal=3', 'BankJournal', 2, 'main', '$user->rights->compta->resultat->lire || $user->rights->accounting->comptarapport->lire', '', 0, 1, __ENTITY__); @@ -295,8 +297,6 @@ insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, left insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->accounting->enabled', __HANDLER__, 'left', 2432__+MAX_llx_menu__, 'accountancy', 'bookkeeping', 2400__+MAX_llx_menu__, '/accountancy/bookkeeping/listbyaccount.php?mainmenu=accountancy&leftmenu=accountancy_bookeeping', 'Bookkeeping', 1, 'accountancy', '$user->rights->accounting->mouvements->lire', '', 0, 12, __ENTITY__); -- Journals insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->accounting->enabled', __HANDLER__, 'left', 2434__+MAX_llx_menu__, 'accountancy', 'bookkeeping', 2400__+MAX_llx_menu__, '/accountancy/bookkeeping/list.php?mainmenu=accountancy&leftmenu=accountancy_bookeeping', 'Journals', 1, 'accountancy', '$user->rights->accounting->mouvements->lire', '', 0, 15, __ENTITY__); --- Export accounting documents -insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->comptabilite->enabled || $conf->accounting->enabled', __HANDLER__, 'left', 2436__+MAX_llx_menu__, 'accountancy', 'accountancy_files', 2400__+MAX_llx_menu__, '/compta/accounting-files.php?mainmenu=accountancy&leftmenu=accountancy_files', 'AccountantFiles', 1, 'accountancy', '$user->rights->compta->resultat->lire || $user->rights->accounting->mouvements->lire', '', 0, 16, __ENTITY__); -- Closure insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, leftmenu, fk_menu, url, titre, level, langs, perms, target, usertype, position, entity) values ('', '$conf->accounting->enabled', __HANDLER__, 'left', 2437__+MAX_llx_menu__, 'accountancy', 'accountancy_closure', 2400__+MAX_llx_menu__, '/accountancy/closure/index.php?mainmenu=accountancy&leftmenu=accountancy_closure', 'MenuAccountancyClosure', 1, 'accountancy', '$user->rights->accounting->fiscalyear->write', '', 0, 17, __ENTITY__); -- Reports