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