src/Invoice/Completor.php
public function isForeignVatClass($vatClassId)
    {
        $shopSettings = $this->config->getShopSettings();
        $foreignVat = $shopSettings['foreignVat'];
        $foreignVatClasses = $shopSettings['foreignVatClasses'];
        return $foreignVat !== PluginConfig::ForeignVat_No && in_array($vatClassId, $foreignVatClasses);
    }
public function isForeignVatClass($vatClassId)
    {
        $shopSettings = $this->config->getShopSettings();
        $foreignVat = $shopSettings['foreignVat'];
        $foreignVatClasses = $shopSettings['foreignVatClasses'];
        return $foreignVat !== PluginConfig::ForeignVat_No && in_array($vatClassId, $foreignVatClasses);
    }
public function isForeignVatClass ( $ vatClassId ) { $ shopSettings = $ this -> config -> getShopSettings ( ) ; $ foreignVat = $ shopSettings [ 'foreignVat' ] ; $ foreignVatClasses = $ shopSettings [ 'foreignVatClasses' ] ; return $ foreignVat !== PluginConfig :: ForeignVat_No && in_array ( $ vatClassId , $ foreignVatClasses ) ; }
Returns whether the vat class id denotes foreign vat.

@param int|string $vatClassId
The vat class to check.

@return bool
True if the shop might sell foreign vat articles and the vat class id
denotes a foreign vat class, false otherwise.
Returns whether the vat class id denotes foreign vat .