Changing Invoice numbers automatically

SUGGESTED

I've been working in Sage 50 for 7 months now.  I frequently add invoices.  Each invoice is assigned a number based on the month it is created. ie: 102021-001.  I know that when I change months I have to change the invoice number manually after it has been assigned automatically.  In this case I would be changing to 112021.  It is not picking up the change when creating invoices after that initial edit.  I am letting the system automatically generate the invoice and then editing it.  Is this not correct?  It's been working properly but now this month it's not.  I can't figure out what I'm doing wrong