diff --git a/src/Views/belege/detail.php b/src/Views/belege/detail.php index 6a64803..64f943b 100644 --- a/src/Views/belege/detail.php +++ b/src/Views/belege/detail.php @@ -550,6 +550,13 @@ $suppliers = $suppliers ?? []; nettoInput.addEventListener('input', function () { manualNetto = true; }); ustSelect.addEventListener('change', recalcNetto); + // updateAutoUst setzt den USt-Satz per JS ohne change-Event → ummanteln + const _origAutoUst = window.updateAutoUst; + window.updateAutoUst = function () { + _origAutoUst.apply(this, arguments); + recalcNetto(); + }; + // Zahlungskonto 1200 vorauswählen const zkSelect = document.getElementById('zahlungskonto_id'); if (zkSelect) {