Refund on prepare fix

This commit is contained in:
Jérémy Munsch 2023-04-26 10:31:39 +02:00
parent 9780729fde
commit 2c2f73672f
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -355,7 +355,7 @@ class OrderController extends Controller
$cartItem = CartItem::fromArray([
'id' => \str_replace('.', '', \uniqid('', true)),
'name' => $request->reason,
'name' => trans('Remboursement commande'),
'price' => $order->total_ttc - $order->total_refund,
'weight' => 0,
'options' => $cartItemOptions