fix total discount
fix sale of day
Merge remote-tracking branch 'origin/issue_10631_fix_ajax_total_discount' into add_products_improvements

Conflicts:
	app/assets/javascripts/front/sales.js.coffee.erb
	app/models/line.rb