This commit is contained in:
Markus Gärtner 2025-01-02 14:40:05 +01:00
parent e2e4a9e0d5
commit 79f64de2d7
2 changed files with 11 additions and 10 deletions

View File

@ -16,10 +16,10 @@
<span style="color:#085488; font-weight:700;">XRechnung</span>
</td>
<td>
<table style="width: 100%">
<table style="max-width: 350px;white-space: wrap;">
<tr>
<td colspan="2">
[{oxmultilang ident="D3_XRECHNUNG_EXTRA_FIELDS_MESSAGE"}]
<div> style="max-width:450px;">[{oxmultilang ident="D3_XRECHNUNG_EXTRA_FIELDS_MESSAGE"}]</div>
</td>
</tr>
<tr>
@ -77,7 +77,7 @@
<tr>
<td style="text-align: left" class="edittext">
<label for="exporttype">Format</label>
<select id="exporttype" name="filetype" class="editinput" style="width:80px;">
<select id="exporttype" name="filetype" class="editinput" style="width:160px;">
[{foreach from=$edit->getExportFileTypes() key=key item=filetype}]
<option value="[{$key}]" SELECTED>[{$filetype}]
[{/foreach}]

View File

@ -90,16 +90,17 @@ class Order extends Order_parent
$aBtIndividualFields = (array)$oConfig->getConfigParam('d3xrechnung_BT_ORDERFIELDS_INDIVIDUAL');
$aFields = unserialize($sFields);
foreach ($aBtIndividualFields as $key => $Field)
{
if(!key_exists($Field, $aFields))
{
$aFields[$Field] = '';
}
}
ksort($aFields, SORT_NATURAL);
if(is_array($aFields))
{
foreach ($aBtIndividualFields as $Field){
if(!key_exists($Field, $aFields))
{
$aFields[$Field] = '';
}
}
return $aFields;
}