<?php
namespace ModulesAbstract\ElectronicInvoice\UBL21Structure; class TypeTaxCategory extends AbstractPeppolElement { public $ID = null; public $Name = null; public $Percent = null; public $BaseUnitMeasure = null; public $PerUnitAmount = null; public $TaxExemptionReasonCode = null; public $TaxExemptionReason = null; public $TierRange = null; public $TierRatePercent = null; public $TaxScheme = null; public function renderField(string $field, $value): string { $fieldMapping = [ 'Percent' => 'NF.1', ]; return $this->customRenderer($fieldMapping[$field], $value); } } 