Cart: Fix for discount calculation bug

Quanty was not always taken into consideration when calculating actual
amounts. This commit fixes that.

Also adds test for verifying the correctness of the logic.
Merge pull request #77 from iZettle/cart-discount-calculation-fixes

Cart: Fix for discount calculation bug