add discount constraint in Ext-JS UI part