Explorar el Código

[Administration] Documents > Factures : gestion des paiements

feature/souke
Guillaume Bourgeois hace 1 año
padre
commit
2ed7ee3608
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      backend/controllers/OrderController.php

+ 1
- 1
backend/controllers/OrderController.php Ver fichero

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

Cargando…
Cancelar
Guardar