Fixing setting of invoiceNumber