This is a setting that can be found in the Global Settings > Accounting screen. Simply enable or disable the option Allow Duplicates, as needed and Save the setting.

CORE Community-Admin
Community Moderator
Community Manager