X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/53593baa211863fbf66540cf1bcc36c8fb37257f..5349a1ed016ae603b39d73747eccc6792707db1c:/SL/Controller/Mebil.pm diff --git a/SL/Controller/Mebil.pm b/SL/Controller/Mebil.pm index 99e20ff6d..dbb8c2dea 100644 --- a/SL/Controller/Mebil.pm +++ b/SL/Controller/Mebil.pm @@ -13,6 +13,8 @@ use SL::Locale::String; # t8 #use Data::Dumper; #use SL::ClientJS; +use SL::mebil::Mapping; + use Rose::Object::MakeMethods::Generic ( scalar => [ qw(report number_columns year current_year objects subtotals_per_quarter salesman_id) ], 'scalar --get_set_init' => [ qw(employees types data) ], @@ -52,12 +54,12 @@ sub action_showmap { my ($self) = @_; # call model -> diese Zeile ist fraglich, war ein Konflikt - $self->{data} = DB::MebilMapping::getMappings($::form->get_standard_dbh); + #$self->{data} = DB::MebilMapping::getMappings($::form->get_standard_dbh); $::form->{title} = $::locale->text('Mebil Map'); - my $sql = "SELECT fromacc,typ,toacc from mebil_mapping order by ordering"; - $self->{data} = SL::DBUtils::selectall_hashref_query($::form, $::form->get_standard_dbh, $sql); + my $mapping = new SL::mebil::Mapping($::form, $::form->get_standard_dbh); + $self->{data} = $mapping->get_mapping(); $self->prepare_report; $self->list_data;