OXID-eSales/oxideshop_ce — pull request #55 by druteika (2013-09-23 12:47:12+00:00)
Title: Fix for bug #0005162 - voucher duscount calculation fix.

If voucher series has several articles assigned and those articles are in basket, then with one voucher user got discount multiplied to the number of different articles.

Note, that "Calculate once" option worked only for the amount of same article, but not for other articles assigned to save voucher series.

Current fix restricts discount calculation to one article only.

NOTE: Since now the discount applies only for ONE product in the cart related to entered voucher series, there are important things to notice:
* If article price is less than voucher discount, then user will get only the discount that equals article price.
* If several different articles related to same entered voucher series are in the cart, discount will apply to firs in the row.
* This new calculation restriction works, of course, only if "Calculate once" option is chosen