fix update discount
Merge pull request #6 from sylwesterkondracki/master

fix