[-] BO : #PSCFV-3036 : fix bug and fix notice and fix deprecated function

This commit is contained in:
lLefevre
2012-07-05 15:35:13 +00:00
parent 37f37a0a16
commit a83e98e2cf
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -552,7 +552,7 @@ class OrderCore extends ObjectModel
$row['product_quantity'] = 0;
foreach ($selectedProducts as $key => $id_product)
if ($row['id_order_detail'] == $id_product)
$row['producsvt_quantity'] = (int)($selectedQty[$key]);
$row['product_quantity'] = (int)($selectedQty[$key]);
if (!$row['product_quantity'])
continue;
}
+2 -2
View File
@@ -683,7 +683,7 @@ class AdminOrdersControllerCore extends AdminController
$languages = Language::getLanguages($order);
foreach ($languages as $language)
{
$voucher->description[$language['id_lang']] = $this->l('Credit Slip for order #').(int)($order->id);
$cartrule->description[$language['id_lang']] = $this->l('Credit Slip for order #').(int)($order->id);
// Define a temporary name
$cartrule->name[$language['id_lang']] = 'V0C'.(int)($order->id_customer).'O'.(int)($order->id);
}
@@ -702,7 +702,7 @@ class AdminOrdersControllerCore extends AdminController
$products = $order->getProducts(false, $full_product_list, $full_quantity_list);
// Totals are stored in the order currency (or at least should be)
$total = $order->getTotalProductsWithTaxes($products);
$discounts = $order->getDiscounts(true);
$discounts = $order->getCartRules();
$total_tmp = $total;
foreach ($discounts as $discount)
{