Fix apply discount on a Loan

* Add the same discount options from sales on Loan.
* Fix a bug when try applying discount on a Loan.

Change-Id: I6e81e45db76c3423ef147fe779a6c425750afe30
Fixes: http://bugs.async.com.br/show_bug.cgi?id=5652