The system allows for duplicate reference numbers as the default configuration. This typically happens if a user creates two purchases in draft form at the same time, as the default is generated with the same number.