Skip to content

Commit

Permalink
Merge pull request PrestaShop#2956 from sfroment42/PSCSX-5440
Browse files Browse the repository at this point in the history
[-] BO : Fix #PSCSX-5440 avoid too much quantity refund in standard refund
  • Loading branch information
Jérôme Nadaud committed Apr 29, 2015
2 parents 73e3094 + 00a25f4 commit 6a5bbf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/order/OrderSlip.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ public static function create(Order $order, $product_list, $shipping_cost = fals
if ($quantity == 0)
continue;

$order_detail->product_quantity_refunded += $quantity;
if (!Tools::isSubmit('cancelProduct') && $order->hasBeenPaid())
$order_detail->product_quantity_refunded += $quantity;

$order_detail->save();

$address = Address::initialize($order->id_address_invoice, false);
Expand Down

0 comments on commit 6a5bbf3

Please sign in to comment.