diff --git a/ChangeLog b/ChangeLog index 68ccd4e50df..c52a486523c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -132,6 +132,7 @@ NEW: Use ellipsis truncation on too large left menu text NEW: When a new field to show into lists is selected, the form is automatically submited and field added. NEW: When creating a template invoice from a draft invoice, if there is link to contract on draft invoice, link is kept on template invoice. NEW: When emailing is not sent completely, show progression. +NEW: Add entity field in llx_societe_remise_except and llx_societe_remise For developers: NEW: Add a css class style called 'reposition', so when clicking on a link with this class will move scrollbarr to be placed at same page location. diff --git a/README-FR.md b/README-FR.md index 55065d5d15f..41edb8ba50e 100644 --- a/README-FR.md +++ b/README-FR.md @@ -25,7 +25,7 @@ OpenSuse, Mandriva ou Mageia). Vous pouvez les télécharger depuis la rubrique *download* du portail officiel: https://www.dolibarr.org/ -Si vous avez déjà installé un serveur Web avec PHP et une base de donnée (Mysql), +Si vous avez déjà installé un serveur Web avec PHP et une base de donnée (MariaDb/MySql/PostgreSql), vous pouvez installer Dolibarr avec cette version de la manière suivante: - Copier le répertoire "dolibarr" et son contenu dans la racine de votre serveur @@ -117,8 +117,8 @@ Voir fichier ChangeLog. - Application simple à utiliser. - Plusieurs thèmes visuels. - Code simple et facilement personnalisable. -- Requiert PHP et Mysql ou Postgresql (Voir versions exactes sur http://wiki.dolibarr.org/index.php/Prérequis). -- Compatible avec toutes les offres Cloud du marché respectant les prérequis MySQL et PHP ou Postgresql. +- Requiert PHP et MariaDb, Mysql ou Postgresql (Voir versions exactes sur http://wiki.dolibarr.org/index.php/Prérequis). +- Compatible avec toutes les offres Cloud du marché respectant les prérequis de base de données et PHP. - Export PDF de tous les éléments (factures, propositions commerciales, commandes, bons expéditions, etc...) diff --git a/README.md b/README.md index 3eb0941568a..64579486985 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ If you have low technical skills and you're looking to install Dolibarr ERP/CRM ### Advanced setup -You can use a Web server and a supported database (MySQL recommended) to install the standard version. +You can use a Web server and a supported database (MariaDb, MySql or Postgresql) to install the standard version. - Uncompress the downloaded archive - Copy directory "dolibarr" and all its files inside your web server root, or copy directory anywhere and set up your web server to use "dolibarr/htdocs" as root for a new web server virtual host (second choice need to be server administrator) @@ -119,7 +119,7 @@ See the [ChangeLog](https://github.com/Dolibarr/dolibarr/blob/develop/ChangeLog) - Can manage several currencies by adding external module multi-currency. - Very user friendly and easy to use - Highly customizable: enable only the modules you need, add user personalized fields, choose your skin, several menu managers (can be used by internal users as a back-office with a particular menu, or by external users as a front-office with another one) -- Works with PHP 5.3+ and MySQL 4.1+ or PostgreSQL 8.1. (See requirements on the [Wiki](http://wiki.dolibarr.org/index.php/Prerequisite)) +- Works with PHP 5.3+ and MariaDB 5.0.3+, MySQL 5.0.3+ or PostgreSQL 8.1.4+ (See requirements on the [Wiki](http://wiki.dolibarr.org/index.php/Prerequisite)) - Compatible with all Cloud solutions that match MySQL, PHP or PostgreSQL prerequisites. - An easy to understand, maintain and code interfaces with your own information system (PHP with no heavy framework; trigger and hook architecture) - Support for country specific features: diff --git a/htdocs/accountancy/admin/card.php b/htdocs/accountancy/admin/card.php index 1dcb2a533de..057e2f0484c 100644 --- a/htdocs/accountancy/admin/card.php +++ b/htdocs/accountancy/admin/card.php @@ -69,10 +69,10 @@ if ($action == 'add') { $account_number = clean_account(GETPOST('account_number')); } - if (GETPOST('account_category') <= 0) { - $account_parent = ''; + if (GETPOST('account_parent') <= 0) { + $account_parent = 0; } else { - $account_parent = GETPOST('account_category','int'); + $account_parent = GETPOST('account_parent','int'); } $object->fk_pcg_version = $obj->pcg_version; @@ -98,7 +98,7 @@ if ($action == 'add') { header("Location: account.php"); exit; } else if ($action == 'edit') { - if (! GETPOST('cancel', 'alpha')) { + if (! $cancel) { $result = $object->fetch($id); $sql = 'SELECT pcg_version FROM ' . MAIN_DB_PREFIX . 'accounting_system WHERE rowid=' . $conf->global->CHARTOFACCOUNTS; @@ -119,10 +119,10 @@ if ($action == 'add') { $account_number = clean_account(GETPOST('account_number')); } - if (GETPOST('account_category') <= 0) { - $account_parent = ''; + if (GETPOST('account_parent') <= 0) { + $account_parent = 0; } else { - $account_parent = GETPOST('account_category','int'); + $account_parent = GETPOST('account_parent','int'); } $object->fk_pcg_version = $obj->pcg_version; @@ -165,7 +165,9 @@ if ($action == 'add') { /* * View */ -llxheader('', $langs->trans('AccountAccounting')); +$title = $langs->trans('AccountAccounting') ." - ". $langs->trans('Card'); +$helpurl = ''; +llxheader('', $title, $helpurl); $form = new Form($db); $htmlacc = new FormVentilation($db); @@ -184,7 +186,7 @@ if ($action == 'create') { print '
| ' . $langs->trans("AccountNumber") . ' | '; + print '|||||||||||||||
| ' . $langs->trans("AccountNumber") . ' | '; print '|||||||||||||||
| ' . $langs->trans("AccountNumber") . ' | '; + print '|||||||||||||||
| ' . $langs->trans("AccountNumber") . ' | '; print '|||||||||||||||
| ' . $langs->trans("AccountNumber") . ' | '; + print '||||
| ' . $langs->trans("AccountNumber") . ' | '; print '' . $object->account_number . ' | '; print '' . $linkback . ' | ||
| ' . $langs->trans("BANK_DISABLE_DIRECT_INPUT") . ' | '; +if (! empty($conf->global->BANK_DISABLE_DIRECT_INPUT)) { + print ''; + print img_picto($langs->trans("Activated"), 'switch_on'); + print ' | '; +} else { + print ''; + print img_picto($langs->trans("Disabled"), 'switch_off'); + print ' | '; +} +print '||
| ' . $langs->trans("Account") . ' | '; print '' . $langs->trans("Label") . ' | '; -print '' . $langs->trans("JanuaryMin") . ' | '; -print '' . $langs->trans("FebruaryMin") . ' | '; -print '' . $langs->trans("MarchMin") . ' | '; -print '' . $langs->trans("AprilMin") . ' | '; -print '' . $langs->trans("MayMin") . ' | '; -print '' . $langs->trans("JuneMin") . ' | '; -print '' . $langs->trans("JulyMin") . ' | '; -print '' . $langs->trans("AugustMin") . ' | '; -print '' . $langs->trans("SeptemberMin") . ' | '; -print '' . $langs->trans("OctoberMin") . ' | '; -print '' . $langs->trans("NovemberMin") . ' | '; -print '' . $langs->trans("DecemberMin") . ' | '; +for($i = 1; $i <= 12; $i ++) { + print '' . $langs->trans('MonthShort' . str_pad($i, 2, '0', STR_PAD_LEFT)) . ' | '; +} print '' . $langs->trans("Total") . ' |
| ' . length_accountg($row[0]) . ' | '; print '' . $row[1] . ' | '; - print '' . price($row[2]) . ' | '; - print '' . price($row[3]) . ' | '; - print '' . price($row[4]) . ' | '; - print '' . price($row[5]) . ' | '; - print '' . price($row[6]) . ' | '; - print '' . price($row[7]) . ' | '; - print '' . price($row[8]) . ' | '; - print '' . price($row[9]) . ' | '; - print '' . price($row[10]) . ' | '; - print '' . price($row[11]) . ' | '; - print '' . price($row[12]) . ' | '; + for($i = 2; $i <= 12; $i ++) { + print '' . price($row[$i]) . ' | '; + } print '' . price($row[13]) . ' | '; print '' . price($row[14]) . ' | '; print '
| ' . $langs->trans("Total") . ' | '; -print '' . $langs->trans("JanuaryMin") . ' | '; -print '' . $langs->trans("FebruaryMin") . ' | '; -print '' . $langs->trans("MarchMin") . ' | '; -print '' . $langs->trans("AprilMin") . ' | '; -print '' . $langs->trans("MayMin") . ' | '; -print '' . $langs->trans("JuneMin") . ' | '; -print '' . $langs->trans("JulyMin") . ' | '; -print '' . $langs->trans("AugustMin") . ' | '; -print '' . $langs->trans("SeptemberMin") . ' | '; -print '' . $langs->trans("OctoberMin") . ' | '; -print '' . $langs->trans("NovemberMin") . ' | '; -print '' . $langs->trans("DecemberMin") . ' | '; +for($i = 1; $i <= 12; $i ++) { + print '' . $langs->trans('MonthShort' . str_pad($i, 2, '0', STR_PAD_LEFT)) . ' | '; +} print '' . $langs->trans("Total") . ' |
| ' . $row[0] . ' | '; - print '' . $row[1] . ' | '; - print '' . price($row[2]) . ' | '; - print '' . price($row[3]) . ' | '; - print '' . price($row[4]) . ' | '; - print '' . price($row[5]) . ' | '; - print '' . price($row[6]) . ' | '; - print '' . price($row[7]) . ' | '; - print '' . price($row[8]) . ' | '; - print '' . price($row[9]) . ' | '; - print '' . price($row[10]) . ' | '; - print '' . price($row[11]) . ' | '; - print '' . price($row[12]) . ' | '; + for($i = 1; $i <= 12; $i ++) { + print '' . price($row[$i]) . ' | '; + } print '' . price($row[13]) . ' | '; print ''; - print ' | '; + print ''; } if (! empty($arrayfields['d.lastname']['checked'])) @@ -611,6 +612,13 @@ if ($resql) print ""; print $memberstatic->getNomUrl(1); print " | \n"; + } + // Firstname + if (! empty($arrayfields['d.firstname']['checked'])) + { + print ""; + print $obj->firstname; + print " | \n"; } // Lastname if (! empty($arrayfields['d.lastname']['checked'])) @@ -618,13 +626,6 @@ if ($resql) print ""; print $obj->lastname; print " | \n"; - } - // Firstname - if (! empty($arrayfields['d.firstname']['checked'])) - { - print ""; - print $obj->firstname; - print " | \n"; } // Company if (! empty($arrayfields['d.company']['checked'])) diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index cb8ac8a599a..989aa001131 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -172,7 +172,7 @@ if ($action == 'edit') // Edit print ''; print ''; - // Multilangual GUI + // Multilingual GUI $var=!$var; print ' |
| '.$langs->trans("EnableMultilangInterface").' | ';
print $form->selectyesno('main_multilangs',$conf->global->MAIN_MULTILANGS,1);
@@ -186,7 +186,7 @@ if ($action == 'edit') // Edit
show_theme(null,1);
print ' '; - // Liste des zone de recherche permanantes supportees + // List of permanent supported search box if (! empty($searchform)) { print ' |