/** * Returns the shopware tax id * * @throws PlentymarketsImportItemException * @return integer */ protected function getTaxId() { try { $taxID = PlentymarketsMappingController::getVatByPlentyID($this->ItemBase->VATInternalID); } catch (PlentymarketsMappingExceptionNotExistant $E) { throw new PlentymarketsImportItemException('The item »' . $this->ItemBase->Texts->Name . '« with the id »' . $this->ItemBase->ItemID . '« could not be imported (no valid vat/tax)', 3030); } return $taxID; }