From 515028812cc3764b1f5c44a01739e07658041028 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 20 Jan 2017 11:56:07 +0100 Subject: [PATCH] =?utf8?q?Debitorenbuchungen:=20W=C3=A4hrungs-/Verk=C3=A4u?= =?utf8?q?fer-Drop-Downs=20nicht=20als=20Hidden=20mitschleifen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/AR.pm | 2 -- bin/mozilla/ar.pl | 30 ++++++++++++++------------ templates/webpages/ar/form_header.html | 9 ++------ 3 files changed, 18 insertions(+), 23 deletions(-) diff --git a/SL/AR.pm b/SL/AR.pm index 4fea4afe9..079e9e889 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -99,8 +99,6 @@ sub _post_transaction { } $form->{paid} = $form->round_amount($form->{paid} * ($form->{exchangerate} || 1), 2); - ($null, $form->{employee_id}) = split /--/, $form->{employee}; - $form->get_employee($dbh) unless $form->{employee_id}; # if we have an id delete old records else make one diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index dc7074c61..99e0d9536 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -40,7 +40,9 @@ use SL::AR; use SL::FU; use SL::GL; use SL::IS; +use SL::DB::Currency; use SL::DB::Default; +use SL::DB::Employee; use SL::DB::Invoice; use SL::ReportGenerator; @@ -179,9 +181,6 @@ sub create_links { # currencies $form->{defaultcurrency} = $form->get_default_currency(\%myconfig); - $form->{selectcurrency} = ""; - map { $form->{selectcurrency} .= "