Add discount sample
Some fixes on backoffice editors