add validation to discounts
Add new constraint to generation of Document