Hi,
in standard is not possible to guarantee that you´ll get same document number from sales order to invoice. While using different documents types and different number ranges, many things may happen during the way, invoice splits, document deletions... etc that will make number ranges mismatches.
Regards,
JM