Quellcode durchsuchen

CreditUtils : correctif arrondi

feature/souke
Guillaume Bourgeois vor 1 Jahr
Ursprung
Commit
813dd623ba
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      common/logic/User/CreditHistory/Service/CreditUtils.php

+ 2
- 2
common/logic/User/CreditHistory/Service/CreditUtils.php Datei anzeigen

@@ -67,7 +67,7 @@ class CreditUtils extends AbstractService implements UtilsInterface

public function payOrder(Order $order, User $userAction, bool $checkCreditLimit): void
{
$amountRemaining = $this->orderSolver->getOrderAmountWithTax($order, Order::AMOUNT_REMAINING);
$amountRemaining = $this->orderSolver->getOrderAmountWithTax($order, Order::AMOUNT_REMAINING, true);

if($checkCreditLimit) {
$creditLimit = $this->producerRepository->getConfig('credit_limit');
@@ -93,7 +93,7 @@ class CreditUtils extends AbstractService implements UtilsInterface

public function refundOrder(Order $order, User $userAction): void
{
$amountPaid = $this->orderSolver->getOrderAmount($order, Order::AMOUNT_PAID);
$amountPaid = $this->orderSolver->getOrderAmount($order, Order::AMOUNT_PAID, true);

if ($amountPaid >= 0.01 && $order->id_user) {
$this->creditHistoryBuilder->createCreditHistory(

Laden…
Abbrechen
Speichern