22 lines
456 B
PHP
22 lines
456 B
PHP
<?php
|
|
|
|
namespace External\CykloSpecialityBundle\Context;
|
|
|
|
use KupShop\KupShopBundle\Context\UserContext;
|
|
use Symfony\Contracts\Service\Attribute\Required;
|
|
|
|
class VatContext extends \KupShop\KupShopBundle\Context\VatContext
|
|
{
|
|
#[Required]
|
|
public UserContext $userContext;
|
|
|
|
protected function isVatFree(): bool
|
|
{
|
|
if ($this->userContext->isType('b2b')) {
|
|
return parent::isVatFree();
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|