Please follow the steps mentioned below to disable the auto-fill of last charged price for a customer when creating an invoice:
Step 1: Go to Settings
Step 2: Go to Preferences >> Document >> Sales >> Disable Use Recently Charged Prices option >> Click on Save changes.

