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') }} -
+
@if ($order->shipping_address)
@@ -103,37 +104,41 @@ - - - - - + + + + + - @foreach ($invoice->items as $item) - - + + + @endif + - + - - + + - @endforeach + @endforeach
{{ __('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'])) -
+ @if (isset($item->additional['attributes'])) +
- @foreach ($item->additional['attributes'] as $attribute) - {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
- @endforeach + @foreach ($item->additional['attributes'] as $attribute) + {{ $attribute['attribute_name'] }} + : {{ $attribute['option_label'] }}
+ @endforeach -
- @endif -
{{ core()->formatPrice($item->price, $order->order_currency_code) }} - {{ core()->formatPrice($item->price, $order->order_currency_code) }} + {{ $item->qty }}
{{ $item->qty }}
@@ -156,14 +161,12 @@
@endif - @foreach (Webkul\Tax\Helpers\Tax::getTaxRatesWithAmount($refund, false) as $taxRate => $taxAmount) -
- {{ __('shop::app.mail.order.tax') }} {{ $taxRate }} % - - {{ core()->formatPrice($taxAmount, $order->order_currency_code) }} +
+ {{ __('shop::app.mail.order.tax') }} + + {{ core()->formatPrice($invoice->tax_amount, $order->order_currency_code) }} -
- @endforeach +
@if ($invoice->discount_amount > 0)
@@ -182,7 +185,8 @@
-
+

{!! __('shop::app.mail.order.help', [