Merge pull request #1471 from FHenry/3.5

Fix deposit invoice
fixes #1300
fixes #1300
Merge pull request #1476 from tbasilici/3.5

3.5
Fix: sql syntax error with pgsql
Fix [ bug #1283 ] ROUGET Shipment PDF
Merge branch '3.5' of https://github.com/Dolibarr/dolibarr.git into 3.5