Commit f960a8a1 authored by Daniel Kazior's avatar Daniel Kazior
Browse files

Merge branch 'develop' into 'CREF-336'

# Conflicts:
#   etc/module.xml
parents 777586ce d5587def
......@@ -17,7 +17,7 @@ class AmountBuilder
public function buildFromQuote(Quote $quote): Amount
{
$amount = new Amount();
$amount->setAmount(round($quote->getGrandTotal() * 100));
$amount->setAmount((int) (round($quote->getGrandTotal(), 2) * 100));
return $amount;
}
......@@ -29,7 +29,7 @@ class AmountBuilder
public function buildFromOrder(OrderAdapterInterface $order): Amount
{
$amount = new Amount();
$amount->setAmount(ceil($order->getGrandTotalAmount() * 100));
$amount->setAmount((int) (round($order->getGrandTotalAmount(), 2) * 100));
return $amount;
}
......
......@@ -74,7 +74,7 @@ class BasketBuilder
{
$basketItem = new BasketItem();
$basketItemAmount = new Amount();
$basketItemAmount->setAmount(ceil($rowTotal * 100));
$basketItemAmount->setAmount((int) (round($rowTotal, 2) * 100));
$basketItem->setBasketItemText($name);
$basketItem->setBasketItemCount($qty);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment