From 408a65ca75b941501bc630b144288dd466676248 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 7 May 2007 07:56:59 +0000 Subject: [PATCH] =?utf8?q?Beim=20Buchen=20von=20Eingangsrechnungen=20den?= =?utf8?q?=20ausgew=C3=A4hlten=20Bearbeiter=20honorieren=20und=20speichern?= =?utf8?q?.=20Bugfix=20f=C3=BCr=20640.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IR.pm | 2 +- bin/mozilla/ir.pl | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SL/IR.pm b/SL/IR.pm index fe10a299b..81c5fe75e 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -69,7 +69,7 @@ sub post_invoice { $uid = substr($uid, 2, 75); $query = qq|INSERT INTO ap (invnumber, employee_id) - VALUES ('$uid', '$form->{employee}')|; + VALUES ('$uid', '$form->{employee_id}')|; $dbh->do($query) || $form->dberror($query); $query = qq|SELECT a.id FROM ap a diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 284b2fe5d..39b4b88a1 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -223,7 +223,7 @@ sub form_header { $lxdebug->enter_sub(); # set option selected - foreach $item (qw(AP vendor currency department employee)) { + foreach $item (qw(AP vendor currency department)) { $form->{"select$item"} =~ s/ selected//; $form->{"select$item"} =~ s/option>\Q$form->{$item}\E/option selected>$form->{$item}/; @@ -330,7 +330,7 @@ sub form_header { | . $locale->text('Employee') . qq| | . - NTI($cgi->popup_menu('-name' => 'employee', '-default' => $form->{"employee"}, + NTI($cgi->popup_menu('-name' => 'employee_id', '-default' => $form->{"employee_id"}, '-values' => \@values, '-labels' => \%labels)) . qq| |; @@ -1013,6 +1013,7 @@ sub storno { $form->error($locale->text("Invoice has already been storno'd!")); } + my $employee_id = $form->{employee_id}; invoice_links(); prepare_invoice(); relink_accounts(); @@ -1030,7 +1031,8 @@ sub storno { $form->{id} = ""; $form->{invnumber} = "Storno zu " . $form->{invnumber}; $form->{rowcount}++; - &post(); + $form->{employee_id} = $employee_id; + post(); $lxdebug->leave_sub(); } -- 2.20.1