Fix categories bug

When using the string type,
$typeid == 1 matched all strings making other conditions ineffective.
Fix #1544: Can remove date from invoice
Updated category fix

Categories ID can be passed as strings
PSR code formatting
Fix : VAT and NPR rates where coming from multiprice...
Merge branch '3.5' of github.com:Dolibarr/dolibarr into 3.5
Fix: [ bug #1558 ] Product/service edit page title shows new Ref instead
of old ref
Fix: [ bug #1553 ] Saving User displays setup removes menu
Merge remote-tracking branch 'origin/3.5' into 3.6

Conflicts:
	ChangeLog
Fix: Add more log and missing error message
Fix: Minimum size for captcha
Fix: broken feature: add param for use only "disabled" with delConstant
and "enabled" with setConstant
Fix: broken feature: add param for use only "disabled" with delConstant
and "enabled" with setConstant
Fix: no ' on command to create user on pgsql
Merge branch '3.6' of git@github.com:Dolibarr/dolibarr.git into 3.6
Fix: Missing empty field
Bad translation
Merge pull request #1828 from atm-maxime/3.5

Fix : VAT and NPR rates where coming from multiprice...
Fix: project builddoc trigger is used now
Fix: backlink was wrong after deleting product or service.
Fix: define new ref before trigger