Fix: Nettobetrag bei Kategorie-Konto-Wechsel (USt via updateAutoUst) neu berechnen
This commit is contained in:
parent
e4a6995a31
commit
d27911b707
1 changed files with 7 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue