From 53af5bf8cb24918ccdfc898ebaf916e4ef938c3c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 21 Oct 2020 11:38:13 +0200 Subject: [PATCH] Dialogbuchen: Konto beim Entfernen von Zeilen richtig setzen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Nach Umstellung auf den Chart-Picker heißt das Form-Feld nun `accno_id`, nicht mehr `accno`. --- bin/mozilla/gl.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index e6abc5524..6f49848fc 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -673,7 +673,7 @@ sub update { my $zerotaxes = selectall_hashref_query($form, $dbh, "SELECT id FROM tax WHERE rate = 0", ); my @flds = - qw(accno debit credit projectnumber fx_transaction source memo tax taxchart); + qw(accno_id debit credit projectnumber fx_transaction source memo tax taxchart); for my $i (1 .. $form->{rowcount}) { $form->{"${_}_$i"} = $form->parse_amount(\%myconfig, $form->{"${_}_$i"}) for qw(debit credit tax); @@ -1213,7 +1213,7 @@ sub post_transaction { my ($notax_id) = selectrow_query($form, $dbh, "SELECT id FROM tax WHERE taxkey = 0 LIMIT 1", ); my $zerotaxes = selectall_hashref_query($form, $dbh, "SELECT id FROM tax WHERE rate = 0", ); - my @flds = qw(accno debit credit projectnumber fx_transaction source memo tax taxchart); + my @flds = qw(accno_id debit credit projectnumber fx_transaction source memo tax taxchart); for my $i (1 .. $form->{rowcount}) { next if $form->{"debit_$i"} eq "" && $form->{"credit_$i"} eq ""; -- 2.20.1