convert autodiscount field to entity-keyed json
update discount form to support multiple autodiscounts