issue 10437 discounts

* Apply discount in lines
* Allow percentages or amount discount in lines
* Add translations
* Some Migrations
* Apply discount in total price
* Allow update total price with ajax
* Test