Automatic Sales invoice number not working

This is already a bug report: Receipts and Payments clone bug.

You have already identified the only workaround.