[-] 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user