How to avoid Document No. duplicates in G/L Entries

Presently we can pass multiple entries with the same document no. in G/L and Customer ledger entries. How to avoid passing entries with same document no.

Hi ,

How do you anticipate this . Give an example for a document posting please !


Use the number series else, you are going to have to put some dev in to check wether that number has been used before