Files
2025-08-02 16:30:27 +02:00

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;
}
}