Sylius/SyliusPromotionsBundle — pull request #11 by antonioperic (2013-08-30 17:11:11+00:00)
Title: Update PercentageDiscountConfigurationType.php

Hi,

i found this bug. When you create action with Percetage discount, Sylius saves discount in float format let's say: if you put 10% discount he saves it as 0.1, but when calculate discount it uses this formula:

$adjustment->setAmount(- $subject->getTotal() * ($configuration['percentage'] / 100));

Also doesn't saves the name of adjusment for example name of the action.

Is it better solution to fix it in formula above, or to save discount as integer?

best,
Antonio