The problem is caused by a setting in the Purchase Ledger Options which can be disabled as follows:
Click System, then click Options.
Click Purchase Ledger Options.
Click Edit.
Clear the Prevent Duplicate Purchase Invoice Numbers check box.
Click Save.
📌 Note: After changing the invoice number in the batch, re-enable this option to prevent further duplicate entries.
