Skip to content

Commit b33b33f

Browse files
committed
WIP BUG#AC-1084
1 parent c2498c8 commit b33b33f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/CartPrices.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
5454
$cartTotals = $this->totalsCollector->collectQuoteTotals($quote);
5555
$currency = $quote->getQuoteCurrencyCode();
5656

57-
// subtotal(800) - (discount (10) - discount_tax_compensation_amount(2)) = 792.
58-
5957
return [
6058
'grand_total' => ['value' => $cartTotals->getGrandTotal(), 'currency' => $currency],
6159
'subtotal_including_tax' => ['value' => $cartTotals->getSubtotalInclTax(), 'currency' => $currency],
6260
'subtotal_excluding_tax' => ['value' => $cartTotals->getSubtotal(), 'currency' => $currency],
6361
'subtotal_with_discount_excluding_tax' => [
64-
'value' => $cartTotals->getSubtotalWithDiscount() + $cartTotals->getDiscountTaxCompensationAmount(), 'currency' => $currency
62+
'value' => $cartTotals->getSubtotalWithDiscount() + $cartTotals->getDiscountTaxCompensationAmount(),
63+
'currency' => $currency
6564
],
6665
'applied_taxes' => $this->getAppliedTaxes($cartTotals, $currency),
6766
'discount' => $this->getDiscount($cartTotals, $currency),

0 commit comments

Comments
 (0)