Add error for discount duplication

Fixes issue #2414