diff --git a/.stickler.yml b/.stickler.yml
index b68804448b2..642dec27412 100644
--- a/.stickler.yml
+++ b/.stickler.yml
@@ -8,3 +8,7 @@ linters:
fixers:
enable: true
+
+files:
+ ignore:
+ - 'htdocs/includes/*'
diff --git a/COPYRIGHT b/COPYRIGHT
index 1af09e6fdaf..fe707c1d63d 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -2,7 +2,7 @@
License
-------
-Dolibarr is released under the terms of the GNU General Public License as
+Dolibarr is released under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 3 of the License,
or (at your option) any later version (GPL-3+).
More information: https://www.gnu.org/licenses/gpl-3.0.txt
@@ -15,13 +15,13 @@ PHP libraries:
AdoDb-Date 0.36 Modified BSD License Yes Date convertion (not into rpm package)
CKEditor 4.12.1 LGPL-2.1+ Yes Editor WYSIWYG
EvalMath 1.0 BSD Yes Safe math expressions evaluation
-Escpos-php ? MIT License Yes Thermal receipt printer library, for use with ESC/POS compatible printers
+Escpos-php 2.2 MIT License Yes Thermal receipt printer library, for use with ESC/POS compatible printers
GeoIP 1.4 LGPL-2.1+ Yes Sample code to make geoip convert (not into deb package)
Mobiledetect 2.8.33 MIT License Yes Detect mobile devices browsers
NuSoap 0.9.5 LGPL 2.1+ Yes Library to develop SOAP Web services (not into rpm and deb package)
PEAR Mail_MIME 1.8.9 BSD Yes NuSoap dependency
ParseDown 1.6 MIT License Yes Markdown parser
-PHPDebugBar 1.15.0 MIT License Yes Used only by the module "debugbar" for developers
+PHPDebugBar 1.15.0 MIT License Yes Used only by the module "debugbar" for developers
PHPExcel 1.8.1 LGPL-2.1+ Yes Read/Write XLS files, read ODS files
PHPSpreadSheet ? LGPL-2.1+ Yes Read/Write XLS files, read ODS files
php-iban 1.4.7 LGPL-3+ Yes Parse and validate IBAN (and IIBAN) bank account information in PHP
@@ -37,7 +37,7 @@ TCPDF 6.3.2 LGPL-3+ Yes
TCPDI 1.0.0 LGPL-3+ / Apache 2.0 Yes FPDI replacement
JS libraries:
-Ace 1.4.6 BSD Yes JS library to get code syntaxique coloration in a textarea.
+Ace 1.4.6 BSD Yes JS library to get code syntaxique coloration in a textarea.
jQuery 3.4.1 MIT License Yes JS library
jQuery UI 1.12.1 GPL and MIT License Yes JS library plugin UI
jQuery select2 4.0.5 GPL and Apache License Yes JS library plugin for sexier multiselect
diff --git a/ChangeLog b/ChangeLog
index 2d398c83535..1ce34b5e87a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,7 +24,7 @@ Following changes may create regressions for some external modules, but were nec
* Removed function dol_micro_time. Use native PHP microtime instead.
* The trigger BON_PRELEVEMENT_CREATE has been renamed into DIRECT_DEBIT_ORDER_CREATE.
* The constant INVOICE_SHOW_POS_IN_EXPORT has been renamed into INVOICE_SHOW_POS.
-* If your logo was visible on the menu bar, you must upload a new logo into 'Home-Setup-Company/Organization' to have it visible agin in menu.
+* If your logo is no more visible on the menu bar, you must upload a new logo into 'Home-Setup-Company/Organization' to have it visible again.
* All properties 'libstatut', 'labelstatut', 'labelstatus' were renamed into 'labelStatus'.
* All properties 'labelstatusshort' and 'labelstatut_short' were renamed into 'labelStatusShort'.
* All properties 'type_libelle' were renamed into 'type_label'.
diff --git a/build/generate_filelist_xml.php b/build/generate_filelist_xml.php
index d5af14f9171..8a3096ef72a 100755
--- a/build/generate_filelist_xml.php
+++ b/build/generate_filelist_xml.php
@@ -164,7 +164,7 @@ foreach ($files as $filetmp) {
if (filetype($file)=="file") {
$md5=md5_file($file);
$checksumconcat[]=$md5;
- fputs($fp, '
| ' . $langs->trans("Chartofaccounts") . ' | '; @@ -291,7 +291,7 @@ elseif ($id > 0 || $ref) { print ''; print ''; - print '||||||||||||||||||||||||||||||
| ' . $langs->trans("AccountNumber") . ' | '; @@ -348,7 +348,7 @@ elseif ($id > 0 || $ref) { print '|||||||||||||||||||||||||||||
| ' . $langs->trans("Label") . ' | '; diff --git a/htdocs/accountancy/admin/categories.php b/htdocs/accountancy/admin/categories.php index 5fdd43eb020..8313a45a504 100644 --- a/htdocs/accountancy/admin/categories.php +++ b/htdocs/accountancy/admin/categories.php @@ -104,7 +104,7 @@ print ''; dol_fiche_head(); -print '||||||||||||||||||||||||||||
| ' . $langs->trans("AccountingCategory") . ' | '; diff --git a/htdocs/accountancy/admin/categories_list.php b/htdocs/accountancy/admin/categories_list.php index 852349d0516..f3f3efa572c 100644 --- a/htdocs/accountancy/admin/categories_list.php +++ b/htdocs/accountancy/admin/categories_list.php @@ -449,7 +449,7 @@ if ($id) print ''; print '|||||||||||||||||||||||||||
| ' . $langs->trans('Options') . ' | '; print "|||||||||||||||||||||||
| ' . $langs->trans("Modelcsv") . ' | '; @@ -254,7 +254,7 @@ print "|||||||||||||||||||||||
| ' . $langs->trans('OtherOptions') . ' | '; print "||||||||||||||||||
| ' . $langs->trans("Ref") . ' | '; print '' . $langs->trans("Label") . ' | '; diff --git a/htdocs/accountancy/admin/fiscalyear_card.php b/htdocs/accountancy/admin/fiscalyear_card.php index 42b9d231fe3..31000b8ec8a 100644 --- a/htdocs/accountancy/admin/fiscalyear_card.php +++ b/htdocs/accountancy/admin/fiscalyear_card.php @@ -163,7 +163,7 @@ if ($action == 'create') dol_fiche_head(); - print '|||||||||||||||||
| ' . $langs->trans("Label") . ' | ||||||||||||||
| ' . $langs->trans('OptionMode') . ' | ' . $langs->trans('Description') . ' | '; @@ -202,7 +202,7 @@ print '|||||||||||||
| ' . $langs->trans('OtherOptions') . ' | '; print "||||||||
| ' . $langs->trans('Options') . ' | ' . $langs->trans('Description') . ' | '; print "
| ' . $langs->trans("Label") . ' | '; for($i = 1; $i <= 12; $i++) diff --git a/htdocs/accountancy/bookkeeping/card.php b/htdocs/accountancy/bookkeeping/card.php index ca6403279e1..80c9ffb7792 100644 --- a/htdocs/accountancy/bookkeeping/card.php +++ b/htdocs/accountancy/bookkeeping/card.php @@ -354,7 +354,7 @@ if ($action == 'create') dol_fiche_head(); - print '
| ' . $langs->trans("NumPiece") . ' | '; diff --git a/htdocs/accountancy/bookkeeping/list.php b/htdocs/accountancy/bookkeeping/list.php index 5158e12ebb6..f449a99c8bf 100644 --- a/htdocs/accountancy/bookkeeping/list.php +++ b/htdocs/accountancy/bookkeeping/list.php @@ -922,8 +922,8 @@ while ($i < min($num, $limit)) { print '' . ($line->debit ? price($line->debit) : ''). ' | '; if (! $i) $totalarray['nbfield']++; - if (! $i) $totalarray['totaldebitfield']=$totalarray['nbfield']; - $totalarray['totaldebit'] += $line->debit; + if (! $i) $totalarray['pos'][$totalarray['nbfield']]='totaldebit'; + $totalarray['val']['totaldebit'] += $line->debit; } // Amount credit @@ -931,8 +931,8 @@ while ($i < min($num, $limit)) { print '' . ($line->credit ? price($line->credit) : '') . ' | '; if (! $i) $totalarray['nbfield']++; - if (! $i) $totalarray['totalcreditfield']=$totalarray['nbfield']; - $totalarray['totalcredit'] += $line->credit; + if (! $i) $totalarray['pos'][$totalarray['nbfield']]='totalcredit'; + $totalarray['val']['totalcredit'] += $line->credit; } // Lettering code @@ -998,29 +998,7 @@ while ($i < min($num, $limit)) } // Show total line -if (isset($totalarray['totaldebitfield']) || isset($totalarray['totalcreditfield'])) -{ - $i=0; - print '||
| '.$langs->trans("Total").' | '; - else print ''.$langs->trans("Totalforthispage").' | '; - } - elseif ($totalarray['totaldebitfield'] == $i) print ''.price($totalarray['totaldebit']).' | '; - elseif ($totalarray['totalcreditfield'] == $i) print ''.price($totalarray['totalcredit']).' | '; - else print ''; - } - $parameters=array('arrayfields'=>$arrayfields, 'sql'=>$sql); - $reshook=$hookmanager->executeHooks('printFieldListFooter', $parameters); // Note that $action and $object may have been modified by hook - print $hookmanager->resPrint; - - print ' |