[-] BO : fixed bug #PSCFV-2436 - fix bug on product adding on order page

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15425 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete
2012-05-19 10:52:04 +00:00
parent f5b7e23ffe
commit 098e0fbc35
3 changed files with 6 additions and 2 deletions
@@ -1602,6 +1602,10 @@ class AdminOrdersControllerCore extends AdminController
// Get the last product
$product = $products[max(array_keys($products))];
$resume = OrderSlip::getProductSlipResume($product['id_order_detail']);
$product['quantity_refundable'] = $product['product_quantity'] - $resume['product_quantity'];
$product['amount_refundable'] = $product['total_price_tax_incl'] - $resume['amount_tax_incl'];
$product['amount_refund'] = Tools::displayPrice($resume['amount_tax_incl']);
// Get invoices collection
$invoice_collection = $order->getInvoicesCollection();