Fix: USt-Satz-Dropdown bei Steuercode-Konto nur noch Vorschlag, nicht gesperrt
This commit is contained in:
parent
61bce80012
commit
067f1734be
1 changed files with 6 additions and 13 deletions
|
|
@ -212,9 +212,7 @@ $suppliers = $suppliers ?? [];
|
|||
<th>Typ</th>
|
||||
<th>Kategorie</th>
|
||||
<th>Zahlungskonto</th>
|
||||
<th class="td-right">Netto</th>
|
||||
<th class="td-right">USt</th>
|
||||
<th class="td-right">Brutto</th>
|
||||
<th class="td-right">Wert</th>
|
||||
<th>Text</th>
|
||||
<th>Anlage</th>
|
||||
<th></th>
|
||||
|
|
@ -232,8 +230,6 @@ $suppliers = $suppliers ?? [];
|
|||
<td class="td-mono text-sm"><?= $h($bk['kategorie_nr']) ?><br><span class="td-muted"><?= $h($bk['kategorie_name']) ?></span></td>
|
||||
<td class="td-mono text-sm"><?= $h($bk['zahlungs_nr']) ?><br><span class="td-muted"><?= $h($bk['zahlungs_name']) ?></span></td>
|
||||
<td class="td-right td-mono"><?= $fmt($bk['betrag_netto']) ?></td>
|
||||
<td class="td-right td-mono"><?= number_format((float)$bk['ust_satz'], 0) ?> %</td>
|
||||
<td class="td-right td-mono"><?= $fmt($bk['betrag_brutto']) ?></td>
|
||||
<td class="text-sm">
|
||||
<?= $h($bk['buchungstext']) ?>
|
||||
<?php if ($isReversal): ?>
|
||||
|
|
@ -292,7 +288,7 @@ $suppliers = $suppliers ?? [];
|
|||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php if (empty($bookings)): ?>
|
||||
<tr><td colspan="11" class="text-center text-muted" style="padding:1rem">Noch keine Buchungen.</td></tr>
|
||||
<tr><td colspan="9" class="text-center text-muted" style="padding:1rem">Noch keine Buchungen.</td></tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -735,15 +731,12 @@ function updateAutoUst() {
|
|||
|
||||
const hiddenEl = document.getElementById('ust_satz_hidden');
|
||||
if (autoUst !== null) {
|
||||
ustSatzEl.value = autoUst;
|
||||
ustSatzEl.disabled = true;
|
||||
ustSatzEl.title = 'Automatisch durch Steuercode des Kontos gesetzt';
|
||||
ustSatzEl.value = autoUst;
|
||||
if (hiddenEl) hiddenEl.value = autoUst;
|
||||
} else {
|
||||
ustSatzEl.disabled = false;
|
||||
ustSatzEl.title = '';
|
||||
if (hiddenEl) hiddenEl.value = ustSatzEl.value;
|
||||
}
|
||||
ustSatzEl.disabled = false;
|
||||
ustSatzEl.title = '';
|
||||
if (hiddenEl && autoUst === null) hiddenEl.value = ustSatzEl.value;
|
||||
updateSteuerartVisibility();
|
||||
updateNettoAnzeige();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue