// Fix #PSCFV-4556
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17728 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -127,7 +127,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="partial_refund_fields current-edit" style="text-align:left;display:none">
|
<td class="partial_refund_fields current-edit" style="text-align:left;display:none">
|
||||||
<div style="width:40%;margin-top:5px;float:left">{l s='Quantity:'}</div> <div style="width:60%;margin-top:2px;float:left"><input onchange="checkPartialRefundProductQuantity(this)" type="text" size="3" name="partialRefundProductQuantity[{{$product['id_order_detail']}}]" value="0" /> 0/{$productQuantity-$product['product_quantity_refunded']}</div>
|
<div style="width:40%;margin-top:5px;float:left">{l s='Quantity:'}</div> <div style="width:60%;margin-top:2px;float:left"><input onchange="checkPartialRefundProductQuantity(this)" type="text" size="3" name="partialRefundProductQuantity[{{$product['id_order_detail']}}]" value="0" /> 0/{$productQuantity-$product['product_quantity_refunded']}</div>
|
||||||
<div style="width:40%;margin-top:5px;float:left">{l s='Amount:'}</div> <div style="width:60%;margin-top:2px;float:left"><input onchange="checkPartialRefundProductAmount(this)" type="text" size="3" name="partialRefundProduct[{$product['id_order_detail']}]" /> €</div> {if !empty($product['amount_refund']) && $product['amount_refund'] > 0}({l s='%s refund' sprintf=$product['amount_refund']}){/if}
|
<div style="width:40%;margin-top:5px;float:left">{l s='Amount:'}</div> <div style="width:60%;margin-top:2px;float:left">{$currency->prefix}<input onchange="checkPartialRefundProductAmount(this)" type="text" size="3" name="partialRefundProduct[{$product['id_order_detail']}]" /> {$currency->suffix}</div> {if !empty($product['amount_refund']) && $product['amount_refund'] > 0}({l s='%s refund' sprintf=$product['amount_refund']}){/if}
|
||||||
<input type="hidden" value="{$product['quantity_refundable']}" class="partialRefundProductQuantity" />
|
<input type="hidden" value="{$product['quantity_refundable']}" class="partialRefundProductQuantity" />
|
||||||
<input type="hidden" value="{$product['amount_refundable']}" class="partialRefundProductAmount" />
|
<input type="hidden" value="{$product['amount_refundable']}" class="partialRefundProductAmount" />
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -1273,7 +1273,7 @@ class AdminOrdersControllerCore extends AdminController
|
|||||||
$customer = new Customer($order->id_customer);
|
$customer = new Customer($order->id_customer);
|
||||||
$carrier = new Carrier($order->id_carrier);
|
$carrier = new Carrier($order->id_carrier);
|
||||||
$products = $this->getProducts($order);
|
$products = $this->getProducts($order);
|
||||||
|
$currency = new Currency((int)$order->id_currency);
|
||||||
// Carrier module call
|
// Carrier module call
|
||||||
$carrier_module_call = null;
|
$carrier_module_call = null;
|
||||||
if ($carrier->is_module)
|
if ($carrier->is_module)
|
||||||
@@ -1345,7 +1345,7 @@ class AdminOrdersControllerCore extends AdminController
|
|||||||
$resume = OrderSlip::getProductSlipResume($product['id_order_detail']);
|
$resume = OrderSlip::getProductSlipResume($product['id_order_detail']);
|
||||||
$product['quantity_refundable'] = $product['product_quantity'] - $resume['product_quantity'];
|
$product['quantity_refundable'] = $product['product_quantity'] - $resume['product_quantity'];
|
||||||
$product['amount_refundable'] = $product['total_price_tax_incl'] - $resume['amount_tax_incl'];
|
$product['amount_refundable'] = $product['total_price_tax_incl'] - $resume['amount_tax_incl'];
|
||||||
$product['amount_refund'] = Tools::displayPrice($resume['amount_tax_incl']);
|
$product['amount_refund'] = Tools::displayPrice($resume['amount_tax_incl'], $currency);
|
||||||
$product['refund_history'] = OrderSlip::getProductSlipDetail($product['id_order_detail']);
|
$product['refund_history'] = OrderSlip::getProductSlipDetail($product['id_order_detail']);
|
||||||
$product['return_history'] = OrderReturn::getProductReturnDetail($product['id_order_detail']);
|
$product['return_history'] = OrderReturn::getProductReturnDetail($product['id_order_detail']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user