Wrong number of parameters in document invoice in reporting.inc