diff --git a/build/.gitignore b/build/.gitignore
old mode 100755
new mode 100644
diff --git a/build/aps/APP-META-1.1.xml b/build/aps/APP-META-1.1.xml
old mode 100755
new mode 100644
diff --git a/build/aps/APP-META-1.2.xml b/build/aps/APP-META-1.2.xml
old mode 100755
new mode 100644
diff --git a/build/aps/README b/build/aps/README
old mode 100755
new mode 100644
diff --git a/build/aps/install.forced.php.install b/build/aps/install.forced.php.install
old mode 100755
new mode 100644
index 199ed892355dc3fd0aa8a30aef74fd76a6b2cf7b..a7a3f03c14ca809ce1a4b3fe8281b51023c4c59e
--- a/build/aps/install.forced.php.install
+++ b/build/aps/install.forced.php.install
@@ -21,4 +21,3 @@ $force_install_databaserootpass='';
 $force_install_dolibarrlogin='admin';
 $force_install_nophpinfo='1';
 $force_install_lockinstall='444';
-?>
\ No newline at end of file
diff --git a/build/debian/conf.php.install b/build/debian/conf.php.install
old mode 100755
new mode 100644
index e439e80caef4d883bb8019a9e651e60b94c0a392..c0ba3bdb1205a6057e6770d9d4e0db9c5f03ee59
--- a/build/debian/conf.php.install
+++ b/build/debian/conf.php.install
@@ -226,5 +226,3 @@ $dolibarr_main_prod='0';
 # Default value: 0 (use database value if exist)
 # Examples:
 # $dolibarr_mailing_limit_sendbyweb='0';
-
-?>
diff --git a/build/debian/dolibarr.install b/build/debian/dolibarr.install
old mode 100755
new mode 100644
diff --git a/build/debian/dolibarr.lintian-overrides b/build/debian/dolibarr.lintian-overrides
old mode 100755
new mode 100644
diff --git a/build/debian/dolibarr.templates.futur b/build/debian/dolibarr.templates.futur
old mode 100755
new mode 100644
diff --git a/build/debian/install.forced.php.install b/build/debian/install.forced.php.install
old mode 100755
new mode 100644
index a6347863b1d9c55b9d3329b02016f77494b73dfa..099aab0675a2a31c12df095a1880c908b7969f65
--- a/build/debian/install.forced.php.install
+++ b/build/debian/install.forced.php.install
@@ -42,5 +42,3 @@ $force_install_lockinstall='444';
 //$force_dolibarr_js_JQUERY_UI='/javascript/jquery-ui';
 //$force_dolibarr_js_JQUERY_FLOT='/javascript/flot';
 //$force_dolibarr_font_DOL_DEFAULT_TTF_BOLD='/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf';
-
-?>
\ No newline at end of file
diff --git a/build/debian/po/POTFILES.in b/build/debian/po/POTFILES.in
old mode 100755
new mode 100644
diff --git a/build/debian/po/fr.po b/build/debian/po/fr.po
old mode 100755
new mode 100644
diff --git a/build/doxygen/doxygen_footer.html b/build/doxygen/doxygen_footer.html
old mode 100755
new mode 100644
diff --git a/build/doxygen/doxygen_header.html b/build/doxygen/doxygen_header.html
old mode 100755
new mode 100644
diff --git a/build/rpm/conf.php b/build/rpm/conf.php
old mode 100755
new mode 100644
diff --git a/build/rpm/dolibarr-forrpm.patch b/build/rpm/dolibarr-forrpm.patch
old mode 100755
new mode 100644
diff --git a/build/rpm/dolibarr.desktop b/build/rpm/dolibarr.desktop
old mode 100755
new mode 100644
diff --git a/build/rpm/file_contexts.dolibarr b/build/rpm/file_contexts.dolibarr
old mode 100755
new mode 100644
diff --git a/build/rpm/install.forced.php.fedora b/build/rpm/install.forced.php.fedora
old mode 100755
new mode 100644
index 994689bbfa1657bbb6361b60a01b1cccb0dff01b..108455a940396029214ec461446a3e25f5234875
--- a/build/rpm/install.forced.php.fedora
+++ b/build/rpm/install.forced.php.fedora
@@ -31,5 +31,3 @@ $force_dolibarr_lib_TCPDF_PATH='';
 //$force_dolibarr_js_JQUERY_UI='/javascript/jquery-ui';
 //$force_dolibarr_js_JQUERY_FLOT='/javascript/flot';
 $force_dolibarr_font_DOL_DEFAULT_TTF_BOLD='/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf';
-
-?>
\ No newline at end of file
diff --git a/build/rpm/install.forced.php.generic b/build/rpm/install.forced.php.generic
old mode 100755
new mode 100644
index 718eade3696030aaf1a174d46ad4ac5f1e9b0c68..161f69cdbb3a57099c5a95fc216d3e4e65db9257
--- a/build/rpm/install.forced.php.generic
+++ b/build/rpm/install.forced.php.generic
@@ -20,4 +20,3 @@ $force_install_lockinstall='444';
 
 // Value to overwrite path to use shared libraries/fonts instead of embedded one
 // We don't force any external lib with generic package
-?>
\ No newline at end of file
diff --git a/build/rpm/install.forced.php.mandriva b/build/rpm/install.forced.php.mandriva
old mode 100755
new mode 100644
index 53a8a53b60cf393fa82cd1971c7c6617064a5cb2..266468c7f334c96f4249494279971d40cef05152
--- a/build/rpm/install.forced.php.mandriva
+++ b/build/rpm/install.forced.php.mandriva
@@ -31,5 +31,3 @@ $force_dolibarr_lib_TCPDF_PATH='';
 //$force_dolibarr_js_JQUERY_UI='/javascript/jquery-ui';
 //$force_dolibarr_js_JQUERY_FLOT='/javascript/flot';
 $force_dolibarr_font_DOL_DEFAULT_TTF_BOLD='/usr/share/fonts/TTF/dejavu/DejaVuSans-Bold.ttf';
-
-?>
\ No newline at end of file
diff --git a/build/rpm/install.forced.php.opensuse b/build/rpm/install.forced.php.opensuse
old mode 100755
new mode 100644
index 06a0074b04d55ac488e52dd0366d466d92fcfa4d..b644cea6e249fd2d58d8bffe8962f2fbe2eefa01
--- a/build/rpm/install.forced.php.opensuse
+++ b/build/rpm/install.forced.php.opensuse
@@ -31,5 +31,3 @@ $force_dolibarr_lib_TCPDF_PATH='';
 //$force_dolibarr_js_JQUERY_UI='/javascript/jquery-ui';
 //$force_dolibarr_js_JQUERY_FLOT='/javascript/flot';
 $force_dolibarr_font_DOL_DEFAULT_TTF_BOLD='/usr/share/fonts/truetype/DejaVuSans-Bold.ttf';
-
-?>
\ No newline at end of file
diff --git a/dev/codesniffer/README b/dev/codesniffer/README
old mode 100755
new mode 100644
diff --git a/dev/codesniffer/php.ini b/dev/codesniffer/php.ini
old mode 100755
new mode 100644
diff --git a/dev/codesniffer/ruleset.dtd b/dev/codesniffer/ruleset.dtd
old mode 100755
new mode 100644
diff --git a/dev/codesniffer/ruleset.xml b/dev/codesniffer/ruleset.xml
old mode 100755
new mode 100644
diff --git a/dev/codetemplates/README b/dev/codetemplates/README
old mode 100755
new mode 100644
diff --git a/dev/codetemplates/codetemplates.dtd b/dev/codetemplates/codetemplates.dtd
old mode 100755
new mode 100644
diff --git a/dev/codetemplates/codetemplates.xml b/dev/codetemplates/codetemplates.xml
old mode 100755
new mode 100644
diff --git a/dev/examples/README b/dev/examples/README
old mode 100755
new mode 100644
diff --git a/dev/iso-normes/GURULABS-RPM-GUIDE-v1.0.PDF b/dev/iso-normes/GURULABS-RPM-GUIDE-v1.0.PDF
old mode 100755
new mode 100644
diff --git a/dev/iso-normes/address_format.txt b/dev/iso-normes/address_format.txt
old mode 100755
new mode 100644
diff --git a/dev/iso-normes/banknumber_format.txt b/dev/iso-normes/banknumber_format.txt
old mode 100755
new mode 100644
diff --git a/dev/iso-normes/xmlexport.txt b/dev/iso-normes/xmlexport.txt
old mode 100755
new mode 100644
diff --git a/dev/phpunit/README b/dev/phpunit/README
old mode 100755
new mode 100644
diff --git a/dev/phpunit/eclipse_setup_for_pti_phpunit.png b/dev/phpunit/eclipse_setup_for_pti_phpunit.png
old mode 100755
new mode 100644
diff --git a/dev/skeletons/build_webservice_from_class.php b/dev/skeletons/build_webservice_from_class.php
old mode 100644
new mode 100755
diff --git a/dev/test/testtcpdf.php b/dev/test/testtcpdf.php
old mode 100755
new mode 100644
diff --git a/doc/images/appicon_128.png b/doc/images/appicon_128.png
old mode 100755
new mode 100644
diff --git a/doc/images/appicon_16.ico b/doc/images/appicon_16.ico
old mode 100755
new mode 100644
diff --git a/doc/images/appicon_16.png b/doc/images/appicon_16.png
old mode 100755
new mode 100644
diff --git a/doc/images/appicon_32.png b/doc/images/appicon_32.png
old mode 100755
new mode 100644
diff --git a/doc/images/appicon_48.ico b/doc/images/appicon_48.ico
old mode 100755
new mode 100644
diff --git a/doc/images/appicon_64.png b/doc/images/appicon_64.png
old mode 100755
new mode 100644
diff --git a/doc/images/dolibarr_73x73.png b/doc/images/dolibarr_73x73.png
old mode 100755
new mode 100644
diff --git a/doc/images/dolibarr_logo.png b/doc/images/dolibarr_logo.png
old mode 100755
new mode 100644
diff --git a/htdocs/compta/deplacement/card.php b/htdocs/compta/deplacement/card.php
index 083aeb489860676eab3c52d98f90558c4539c396..63b562bcfe0c15c179dae32452a1bec8f34bab16 100644
--- a/htdocs/compta/deplacement/card.php
+++ b/htdocs/compta/deplacement/card.php
@@ -115,7 +115,7 @@ else if ($action == 'add' && $user->rights->deplacement->creer)
         $error=0;
 
         $object->date			= dol_mktime(12, 0, 0, GETPOST('remonth','int'), GETPOST('reday','int'), GETPOST('reyear','int'));
-        $object->km				= GETPOST('km','int');
+        $object->km				= price2num(GETPOST('km','alpha'), 'MU'); // Not 'int', it may be a formated amount
         $object->type			= GETPOST('type','alpha');
         $object->socid			= GETPOST('socid','int');
         $object->fk_user		= GETPOST('fk_user','int');
@@ -174,7 +174,7 @@ else if ($action == 'update' && $user->rights->deplacement->creer)
         $result = $object->fetch($id);
 
         $object->date			= dol_mktime(12, 0, 0, GETPOST('remonth','int'), GETPOST('reday','int'), GETPOST('reyear','int'));
-        $object->km				= GETPOST('km','int');
+        $object->km				= price2num(GETPOST('km','alpha'), 'MU'); // Not 'int', it may be a formated amount
         $object->type			= GETPOST('type','alpha');
         $object->socid			= GETPOST('socid','int');
         $object->fk_user		= GETPOST('fk_user','int');
diff --git a/htdocs/core/filemanagerdol/browser/default/browser.css b/htdocs/core/filemanagerdol/browser/default/browser.css
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/Folder.gif b/htdocs/core/filemanagerdol/browser/default/images/Folder.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/FolderUp.gif b/htdocs/core/filemanagerdol/browser/default/images/FolderUp.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/ai.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/ai.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/avi.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/avi.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/bmp.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/bmp.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/cs.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/cs.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/default.icon.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/default.icon.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/dll.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/dll.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/doc.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/doc.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/exe.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/exe.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/fla.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/fla.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/gif.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/gif.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/htm.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/htm.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/html.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/html.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/jpg.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/jpg.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/js.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/js.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/mdb.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/mdb.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/mp3.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/mp3.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/pdf.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/pdf.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/png.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/png.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/ppt.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/ppt.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/rdp.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/rdp.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/swf.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/swf.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/swt.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/swt.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/txt.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/txt.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/vsd.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/vsd.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/xls.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/xls.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/xml.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/xml.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/32/zip.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/32/zip.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/ai.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/ai.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/avi.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/avi.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/bmp.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/bmp.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/cs.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/cs.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/default.icon.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/default.icon.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/dll.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/dll.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/doc.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/doc.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/exe.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/exe.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/fla.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/fla.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/gif.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/gif.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/htm.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/htm.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/html.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/html.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/jpg.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/jpg.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/js.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/js.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/mdb.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/mdb.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/mp3.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/mp3.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/pdf.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/pdf.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/png.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/png.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/ppt.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/ppt.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/rdp.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/rdp.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/swf.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/swf.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/swt.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/swt.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/txt.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/txt.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/vsd.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/vsd.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/xls.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/xls.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/xml.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/xml.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/images/icons/zip.gif b/htdocs/core/filemanagerdol/browser/default/images/icons/zip.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/js/common.js b/htdocs/core/filemanagerdol/browser/default/js/common.js
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/js/fckxml.js b/htdocs/core/filemanagerdol/browser/default/js/fckxml.js
old mode 100755
new mode 100644
diff --git a/htdocs/core/filemanagerdol/browser/default/spacer.gif b/htdocs/core/filemanagerdol/browser/default/spacer.gif
old mode 100755
new mode 100644
diff --git a/htdocs/core/modules/security/generate/README b/htdocs/core/modules/security/generate/README
old mode 100755
new mode 100644
diff --git a/htdocs/includes/fpdfi/README.txt b/htdocs/includes/fpdfi/README.txt
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/colorpicker/jquery.colorpicker.css b/htdocs/includes/jquery/plugins/colorpicker/jquery.colorpicker.css
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/colorpicker/jquery.colorpicker.js b/htdocs/includes/jquery/plugins/colorpicker/jquery.colorpicker.js
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jcrop/css/Jcrop.gif b/htdocs/includes/jquery/plugins/jcrop/css/Jcrop.gif
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jcrop/css/jquery.Jcrop.css b/htdocs/includes/jquery/plugins/jcrop/css/jquery.Jcrop.css
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jcrop/index.html b/htdocs/includes/jquery/plugins/jcrop/index.html
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jcrop/js/jquery.Jcrop.js b/htdocs/includes/jquery/plugins/jcrop/js/jquery.Jcrop.js
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jcrop/js/jquery.Jcrop.min.js b/htdocs/includes/jquery/plugins/jcrop/js/jquery.Jcrop.min.js
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jnotify/jquery.jnotify-alt.min.css b/htdocs/includes/jquery/plugins/jnotify/jquery.jnotify-alt.min.css
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jnotify/jquery.jnotify.css b/htdocs/includes/jquery/plugins/jnotify/jquery.jnotify.css
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/ChangeLog.txt b/htdocs/includes/jquery/plugins/jpicker/ChangeLog.txt
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/Example.html b/htdocs/includes/jquery/plugins/jpicker/Example.html
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/ReadMe.txt b/htdocs/includes/jquery/plugins/jpicker/ReadMe.txt
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/css/jPicker-1.1.6.css b/htdocs/includes/jquery/plugins/jpicker/css/jPicker-1.1.6.css
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/css/jPicker-1.1.6.min.css b/htdocs/includes/jquery/plugins/jpicker/css/jPicker-1.1.6.min.css
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/AlphaBar.png b/htdocs/includes/jquery/plugins/jpicker/images/AlphaBar.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/Bars.png b/htdocs/includes/jquery/plugins/jpicker/images/Bars.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/Maps.png b/htdocs/includes/jquery/plugins/jpicker/images/Maps.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/NoColor.png b/htdocs/includes/jquery/plugins/jpicker/images/NoColor.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/bar-opacity.png b/htdocs/includes/jquery/plugins/jpicker/images/bar-opacity.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/map-opacity.png b/htdocs/includes/jquery/plugins/jpicker/images/map-opacity.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/mappoint.gif b/htdocs/includes/jquery/plugins/jpicker/images/mappoint.gif
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/picker.gif b/htdocs/includes/jquery/plugins/jpicker/images/picker.gif
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/preview-opacity.png b/htdocs/includes/jquery/plugins/jpicker/images/preview-opacity.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/images/rangearrows.gif b/htdocs/includes/jquery/plugins/jpicker/images/rangearrows.gif
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/jPicker.css b/htdocs/includes/jquery/plugins/jpicker/jPicker.css
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/jpicker-1.1.6.js b/htdocs/includes/jquery/plugins/jpicker/jpicker-1.1.6.js
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jpicker/jpicker-1.1.6.min.js b/htdocs/includes/jquery/plugins/jpicker/jpicker-1.1.6.min.js
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/application.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/application.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/code.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/code.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/css.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/css.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/db.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/db.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/directory.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/directory.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/doc.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/doc.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/file.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/file.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/film.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/film.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/flash.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/flash.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/folder_open.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/folder_open.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/html.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/html.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/java.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/java.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/linux.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/linux.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/music.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/music.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/pdf.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/pdf.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/php.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/php.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/picture.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/picture.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/ppt.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/ppt.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/psd.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/psd.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/ruby.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/ruby.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/script.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/script.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/spinner.gif b/htdocs/includes/jquery/plugins/jqueryFileTree/images/spinner.gif
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/txt.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/txt.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/xls.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/xls.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/images/zip.png b/htdocs/includes/jquery/plugins/jqueryFileTree/images/zip.png
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.css b/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.css
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.js b/htdocs/includes/jquery/plugins/jqueryFileTree/jqueryFileTree.js
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/tiptip/jquery.tipTip.js b/htdocs/includes/jquery/plugins/tiptip/jquery.tipTip.js
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/tiptip/jquery.tipTip.min.js b/htdocs/includes/jquery/plugins/tiptip/jquery.tipTip.min.js
old mode 100755
new mode 100644
diff --git a/htdocs/includes/jquery/plugins/tiptip/tipTip.css b/htdocs/includes/jquery/plugins/tiptip/tipTip.css
old mode 100755
new mode 100644
diff --git a/htdocs/install/doctemplates/projects/template_project.odt b/htdocs/install/doctemplates/projects/template_project.odt
old mode 100755
new mode 100644
diff --git a/htdocs/install/mysql/data/llx_c_input_method.sql b/htdocs/install/mysql/data/llx_c_input_method.sql
old mode 100755
new mode 100644
diff --git a/htdocs/install/mysql/data/llx_c_input_reason.sql b/htdocs/install/mysql/data/llx_c_input_reason.sql
old mode 100755
new mode 100644
diff --git a/htdocs/install/mysql/migration/3.0.0-3.1.0.sql b/htdocs/install/mysql/migration/3.0.0-3.1.0.sql
old mode 100755
new mode 100644
diff --git a/htdocs/install/mysql/migration/3.1.0-3.2.0.sql b/htdocs/install/mysql/migration/3.1.0-3.2.0.sql
old mode 100755
new mode 100644
diff --git a/htdocs/install/mysql/migration/3.2.0-3.3.0.sql b/htdocs/install/mysql/migration/3.2.0-3.3.0.sql
old mode 100755
new mode 100644
diff --git a/htdocs/install/mysql/migration/3.3.0-3.4.0.sql b/htdocs/install/mysql/migration/3.3.0-3.4.0.sql
old mode 100755
new mode 100644
diff --git a/htdocs/install/mysql/migration/3.4.0-3.5.0.sql b/htdocs/install/mysql/migration/3.4.0-3.5.0.sql
old mode 100755
new mode 100644
diff --git a/htdocs/install/mysql/tables/llx_resource.key.sql b/htdocs/install/mysql/tables/llx_resource.key.sql
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/accept-24.png b/htdocs/opensurvey/img/accept-24.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/accept.png b/htdocs/opensurvey/img/accept.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/add-16.png b/htdocs/opensurvey/img/add-16.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/add-24.png b/htdocs/opensurvey/img/add-24.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/calendar-32.png b/htdocs/opensurvey/img/calendar-32.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/cancel.png b/htdocs/opensurvey/img/cancel.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/chart-32.png b/htdocs/opensurvey/img/chart-32.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/fforward.png b/htdocs/opensurvey/img/fforward.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/medaille.png b/htdocs/opensurvey/img/medaille.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/next.png b/htdocs/opensurvey/img/next.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/object_opensurvey.png b/htdocs/opensurvey/img/object_opensurvey.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/previous.png b/htdocs/opensurvey/img/previous.png
old mode 100755
new mode 100644
diff --git a/htdocs/opensurvey/img/rewind.png b/htdocs/opensurvey/img/rewind.png
old mode 100755
new mode 100644
diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php
index 429990f701040fb513562743423c4833077dbaaa..cf1d8fd2ddfe09297d7f6a983e012d659e27fe08 100644
--- a/htdocs/product/class/product.class.php
+++ b/htdocs/product/class/product.class.php
@@ -878,8 +878,9 @@ class Product extends CommonObject
 
    			// Delete all child tables
 			if (! $error)
+			foreach($elements as $table)
 			{
-    			$elements = array('product_fournisseur_price','product_price','product_lang','categorie_product','product_stock');
+			    $elements = array('product_fournisseur_price','product_price','product_lang','categorie_product','product_stock','product_customer_price');
     			foreach($elements as $table)
     			{
     				if (! $error)
diff --git a/htdocs/theme/amarok/AUTHOR b/htdocs/theme/amarok/AUTHOR
old mode 100755
new mode 100644
diff --git a/htdocs/theme/amarok/img/mainlevel.gif b/htdocs/theme/amarok/img/mainlevel.gif
old mode 100755
new mode 100644
diff --git a/htdocs/theme/amarok/img/working.gif b/htdocs/theme/amarok/img/working.gif
old mode 100755
new mode 100644
diff --git a/htdocs/theme/amarok/tpl/README b/htdocs/theme/amarok/tpl/README
old mode 100755
new mode 100644
diff --git a/htdocs/theme/common/mime/readme.txt b/htdocs/theme/common/mime/readme.txt
old mode 100755
new mode 100644
diff --git a/htdocs/webservices/demo_wsclient_order.php-NORUN b/htdocs/webservices/demo_wsclient_order.php-NORUN
old mode 100755
new mode 100644
diff --git a/test/phpunit/CMailFileTest.php b/test/phpunit/CMailFileTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/ChargeSocialesTest.php b/test/phpunit/ChargeSocialesTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/ContactTest.php b/test/phpunit/ContactTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/CoreTest.php b/test/phpunit/CoreTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/DiscountTest.php b/test/phpunit/DiscountTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/EntrepotTest.php b/test/phpunit/EntrepotTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/Example_import_company_1.csv b/test/phpunit/Example_import_company_1.csv
old mode 100755
new mode 100644
diff --git a/test/phpunit/ImportTest.php b/test/phpunit/ImportTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/PdfDocTest.php b/test/phpunit/PdfDocTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/PgsqlTest.php b/test/phpunit/PgsqlTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/ProductTest.php b/test/phpunit/ProductTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/ScriptsTest.php b/test/phpunit/ScriptsTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/WebservicesOrdersTest.php b/test/phpunit/WebservicesOrdersTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/WebservicesOtherTest.php b/test/phpunit/WebservicesOtherTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/WebservicesProductsTest.php b/test/phpunit/WebservicesProductsTest.php
old mode 100755
new mode 100644
diff --git a/test/phpunit/WebservicesUserTest.php b/test/phpunit/WebservicesUserTest.php
old mode 100755
new mode 100644