瀏覽代碼

[Administration] Documents > Factures : gestion des paiements

feature/souke
Guillaume Bourgeois 1 年之前
父節點
當前提交
2ed7ee3608
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      backend/controllers/OrderController.php

+ 1
- 1
backend/controllers/OrderController.php 查看文件

@@ -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);
}

Loading…
取消
儲存