This commit is contained in:
Michael RICOIS 2018-02-22 15:54:25 +01:00
parent 7163d60447
commit 06413abad5

View File

@ -813,10 +813,10 @@ class AdminOrders extends AdminTab
$orderProducts = $order->getProductsDetail();
// Check line
$refundIsFull = false;
if (count($orderProducts) == count($orderSlipDetail)) {
if (count($orderProducts) == count($refundDetail)) {
$refundIsFull = true;
foreach($orderProducts as $k => $line) {
if ($line['product_quantity'] != $orderSlipDetail[$line['id_order_detail']]['product_quantity']) {
if ($line['product_quantity'] != $refundDetail[$line['id_order_detail']]['product_quantity']) {
$refundIsFull = false;
break;
}
@ -860,9 +860,7 @@ class AdminOrders extends AdminTab
$product_ids[] = (int) $row['product_id'];
}
/**
* @Override Philea
*/
// @Override Philea
if (Db::getInstance()->getRow('
SELECT *
FROM `'._DB_PREFIX_.'philea_parcel`