first commit
This commit is contained in:
21
bundles/External/CykloSpecialityBundle/Context/VatContext.php
vendored
Normal file
21
bundles/External/CykloSpecialityBundle/Context/VatContext.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user