Prevent error on proforma invoices.
Merge branch 'master' into fac24

Conflicts:
	lib/model/doctrine/Invoice.class.php