added locked to InvoiceDto