Duplication item adding in purchase order

when I adding the Same item in multiple times There is a error showing like this. I want to show line number of duplication item entered in the table.

There is an option in buying settings allow you to add the same item multiple times in one transaction. But if you want to see the line number, you have to do some coding.

please help me to do such a coding

Sorry. Am not a developer. :slight_smile: