return $previousLineItems->
count() !==
$currentLineItems->
count() ||
$previous->
getPrice()->
getTotalPrice() !==
$current->
getPrice()->
getTotalPrice() ||
$previousLineItems->
getKeys() !==
$currentLineItems->
getKeys() ||
$previousLineItems->
getTypes() !==
$currentLineItems->
getTypes() ;
} private function detectTaxType(SalesChannelContext
$context, float
$cartNetAmount = 0
): string
{ $currency =
$context->
getCurrency();
$currencyTaxFreeAmount =
$currency->
getTaxFreeFrom();
$isReachedCurrencyTaxFreeAmount =
$currencyTaxFreeAmount > 0 &&
$cartNetAmount >=
$currencyTaxFreeAmount;
if ($isReachedCurrencyTaxFreeAmount) { return CartPrice::TAX_STATE_FREE;
} $country =
$context->
getShippingLocation()->
getCountry();
$isReachedCustomerTaxFreeAmount =
$country->
getCustomerTax()->
getEnabled() &&
$this->
isReachedCountryTaxFreeAmount($context,
$country,
$cartNetAmount);
$isReachedCompanyTaxFreeAmount =
$this->taxDetector->
isCompanyTaxFree($context,
$country) &&
$this->
isReachedCountryTaxFreeAmount($context,
$country,
$cartNetAmount, CountryDefinition::TYPE_COMPANY_TAX_FREE
);
if ($isReachedCustomerTaxFreeAmount ||
$isReachedCompanyTaxFreeAmount) {