Skip to content

Commit

Permalink
Merge pull request #16 from mygento/nn-506-float-to-int-issue
Browse files Browse the repository at this point in the history
Fixed -1 kop: float to int convertion issue
  • Loading branch information
k-k-spiilmusic authored Nov 9, 2018
2 parents 0d6d4b5 + 3db8aba commit 1435b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public function getProcessedItem($item)
/** @var int $qtyUpdate Сколько товаров из ряда нуждаются в изменении цены
* Если $qtyUpdate =0 - то цена всех товаров должна быть увеличина
*/
$qtyUpdate = abs($rowDiff % $qty);
$qtyUpdate = abs(bcmod($rowDiff, $qty));
$sign = abs($rowDiff)/$rowDiff;

//2 кейса:
Expand Down

0 comments on commit 1435b79

Please sign in to comment.