Merge pull request #1236 from altairis-fr/3.4

Fix: Supplier price displayed on document lines didnt take discount
Fix: bad sql syntax
Merge pull request #1237 from altairis-fr/3.4

Fix: Supplier price displayed on document lines and margin infos didnt take discount
Fix: bug preventing creation of predefined invoice.
Also added phpunit test to detect it if it occurs again.
Merge branch '3.4' of https://github.com/Dolibarr/dolibarr.git into 3.4
Fix: bad condition

Conflicts:
	htdocs/societe/societe.php
Fix for debian package
Fix: Error in url
Merge remote-tracking branch 'origin/3.3' into 3.4
Fix: We must not remove sources from packages
Use official package directly to build debian.
Merge remote-tracking branch 'origin/3.3' into 3.4
Fix: Bad param
Fix: Calculation of deposit amount when using a percent was done only on
last line.
Merge branch '3.4' of git@github.com:Dolibarr/dolibarr.git into 3.4
Fix: Better management of pdf generation when tcpdf not available.
Merge remote-tracking branch 'origin/3.3' into 3.4

Conflicts:
	htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php
	htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php
Add missing label
Fix: Bad parameters

Conflicts:
	htdocs/comm/action/fiche.php
Fix: Bad permission check