null,
null,
null,
null,
null,
null
) );
$hasMultipleTaxes =
$taxCalculator->
hasDifferentTaxes($prices);
if ($voucherDetails['percental'
]) { $voucherPrices =
$taxCalculator->
recalculatePercentageDiscount(-
$voucherValue,
$prices, !
$this->sSYSTEM->sUSERGROUPDATA
['tax'
] &&
$this->sSYSTEM->sUSERGROUPDATA
['id'
]);
} else { $voucherPrices =
$taxCalculator->
calculate($voucherDetails['value'
],
$prices, !
$this->sSYSTEM->sUSERGROUPDATA
['tax'
] &&
$this->sSYSTEM->sUSERGROUPDATA
['id'
]);
} $voucherPrices =
$this->eventManager->
filter( 'Shopware_Modules_Basket_AddVoucher_VoucherPrices',
$voucherPrices,
[ 'subject' =>
$this,
'voucher' =>
$voucherDetails,
'vouchername' =>
$voucherName,