Debit Note giving an error-Duplicated Supplier Invoice Number

Good day,
i have a doctype called purchase invoice. in purchase invoice list when will allow them to save the debit note without removing the supplier invoice n.o.can you provide client script .

You can disable it from the Accounts Settings

i have already disable in account settings. but it’s not work.

I tested it, so it’s worked properly.

If there are any validations set from your side, remove them. By default, the feature is doing proper work.