Skip to content

Commit

Permalink
Merge pull request #53 from zans-laksa/1796-shipping-tax-display
Browse files Browse the repository at this point in the history
Shipping Tax Amount Backend
  • Loading branch information
alfredsgenkins authored Dec 28, 2020
2 parents 39821b1 + 3832ca5 commit c0282a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Model/Resolver/GetCartForCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,15 @@ public function resolve(
$tax_amount = $address->getTaxAmount();
$discount_amount = $address->getDiscountAmount();
$subtotal_incl_tax = $cart->getSubtotal() + $tax_amount;
$shipping_tax_amount = $address->getShippingTaxAmount();
$applied_taxes = $this->getAppliedTaxes($address);

return [
'items' => $itemsData,
'tax_amount' => $tax_amount,
'subtotal_incl_tax' => $subtotal_incl_tax,
'discount_amount' => $discount_amount,
'shipping_tax_amount' => $shipping_tax_amount,
// In interface it is PHPDocumented that it returns bool,
// while in implementation it returns int.
'is_virtual' => (bool) $cart->getIsVirtual(),
Expand Down

0 comments on commit c0282a7

Please sign in to comment.