@Hadi
I agree with you, developers should look into this.
I also think this might be a bug, for documents with linearized XML. InvoiceS ignator seems to change the original Invoice structure of the document when saving the invoice and doesn’t recalculate the InvoiceHash when creating the Invoice Request and causes the InvoiceHash to be incorrect.