diff --git a/forms/kontobewegung.php b/forms/kontobewegung.php index fb38b9e..39bed67 100644 --- a/forms/kontobewegung.php +++ b/forms/kontobewegung.php @@ -155,8 +155,8 @@ $kontostand_nachher_konto_vorher = $kontostand_vorher_konto_vorher; } } else { - if(isset($datum_abgebucht_vorher)) { - $kontostand_nachher_konto_vorher = $kontostand_vorher_konto_vorher - $betrag_vorher; + if(isset($datum_abgebucht_vorher) || isset($para_datum_abgebucht)) { + if(isset($datum_abgebucht_vorher)) $kontostand_nachher_konto_vorher = $kontostand_vorher_konto_vorher - $betrag_vorher; $kontostand_nachher_konto_nachher = $kontostand_vorher_konto_nachher + $para_betrag; $stmt = $para_pdo->prepare("UPDATE konto