Browse Source

[Administration] Documents > Factures : gestion des paiements

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
2ed7ee3608
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/controllers/OrderController.php

+ 1
- 1
backend/controllers/OrderController.php View File

$oldIdUser = $order->id_user; $oldIdUser = $order->id_user;
$amountPaid = $orderManager->getOrderAmountWithTax($order, Order::AMOUNT_PAID); $amountPaid = $orderManager->getOrderAmountWithTax($order, Order::AMOUNT_PAID);
if ($oldIdUser != $idUser && $amountPaid > 0) { if ($oldIdUser != $idUser && $amountPaid > 0) {
$paymentManager->refundOrder($order, $this->getUserCurrent());
$paymentManager->refundOrderCredit($order, $this->getUserCurrent());
$order = $orderManager->findOneOrderById($idOrder); $order = $orderManager->findOneOrderById($idOrder);
$orderManager->initOrder($order); $orderManager->initOrder($order);
} }

Loading…
Cancel
Save