This commit is contained in:
Pranshu Tomar 2020-04-13 20:58:34 +05:30
parent 57d2def00f
commit dd46e23628
2 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,8 @@
* #2856 [fixed] - Issue with Sort by functionality, when open any category it by defaults show Newest First but after changing sort by when again select newest first it shows different product.
* #2871 [fixed] - Refund throws "Undefined index: shipping" error
## **v1.1.0 (24th of March 2020)** - *Release*

View File

@ -107,6 +107,10 @@ class RefundController extends Controller
$data = request()->all();
if (! $data['refund']['shipping']) {
$data['refund']['shipping'] = 0;
}
$totals = $this->refundRepository->getOrderItemsRefundSummary($data['refund']['items'], $orderId);
$maxRefundAmount = $totals['grand_total']['price'] - $order->refunds()->sum('base_adjustment_refund');