It was not possible to sign a refund invoice created from an invoice
When it was created an invoice the field datetime_invoice it was always to write with the same time only changed the date, therefore when we created a invoice refund from an invoice all the field were equal and the returned uuid too, and it was not possible to sign the invoice because the uuid already existed