diff --git a/packages/Webkul/Checkout/src/Cart.php b/packages/Webkul/Checkout/src/Cart.php index 74e75be04..7b125b01a 100755 --- a/packages/Webkul/Checkout/src/Cart.php +++ b/packages/Webkul/Checkout/src/Cart.php @@ -785,7 +785,7 @@ class Cart ])->orderBy('tax_rate', 'desc')->get(); $item = $this->setItemTaxToZero($item); - + if ($taxRates->count()) { foreach ($taxRates as $rate) { $haveTaxRate = false; @@ -822,11 +822,11 @@ class Cart * @param CartItem $item * @return CartItem */ - protected function setItemTaxToZero($item) { + protected function setItemTaxToZero(CartItem $item): CartItem { $item->tax_percent = 0; $item->tax_amount = 0; $item->base_tax_amount = 0; - + return $item; } diff --git a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-invoice.blade.php b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-invoice.blade.php index 32a35705f..5c24a70fd 100755 --- a/packages/Webkul/Shop/src/Resources/views/emails/sales/new-invoice.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/emails/sales/new-invoice.blade.php @@ -30,7 +30,8 @@ {{ __('shop::app.mail.invoice.summary') }} -
| {{ __('shop::app.customer.account.order.view.product-name') }} | -{{ __('shop::app.customer.account.order.view.price') }} | -{{ __('shop::app.customer.account.order.view.qty') }} | -|
|---|---|---|---|
| {{ __('shop::app.customer.account.order.view.product-name') }} | +{{ __('shop::app.customer.account.order.view.price') }} | +{{ __('shop::app.customer.account.order.view.qty') }} | +|
| - {{ $item->name }} + @foreach ($invoice->items as $item) + | |||
| + {{ $item->name }} - @if (isset($item->additional['attributes'])) - | + + @endif + -{{ core()->formatPrice($item->price, $order->order_currency_code) }} - | +{{ core()->formatPrice($item->price, $order->order_currency_code) }} + | -{{ $item->qty }} | -{{ $item->qty }} | + - @endforeach + @endforeach
{!! __('shop::app.mail.order.help', [