<?php
namespace ModulesAbstract\ElectronicInvoice\UBL21Structure; class TypeAllowanceCharge extends AbstractPeppolElement { public $ID = null; public $ChargeIndicator = null; public $AllowanceChargeReasonCode = null; public $AllowanceChargeReason = null; public $MultiplierFactorNumeric = null; public $PrepaidIndicator = null; public $SequenceNumeric = null; public $Amount = null; public $BaseAmount = null; public $AccountingCostCode = null; public $AccountingCost = null; public $PerUnitAmount = null; public $TaxCategory = null; public $TaxTotal = null; public $PaymentMeans = null; public function renderField(string $field, $value): string { $fieldMapping = [ 'ChargeIndicator' => 'B', ]; return $this->customRenderer($fieldMapping[$field], $value); } } 