$::lxdebug->enter_sub;
my ($self) = @_;
+ # call model
+ $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";
letter => 'letter',
letter_draft => 'letter_draft',
makemodel => 'make_model',
+ mebil_mapping => 'mebil_mapping',
notes => 'note',
orderitems => 'order_item',
oe => 'order',
--- /dev/null
+# This file has been auto-generated only because it didn't exist.
+# Feel free to modify it at will; it will not be overwritten automatically.
+
+package SL::DB::Manager::MebilMapping;
+
+use strict;
+
+use parent qw(SL::DB::Helper::Manager);
+
+sub object_class { 'SL::DB::MebilMapping' }
+
+__PACKAGE__->make_manager_methods;
+
+1;
--- /dev/null
+package SL::DB::MebilMapping;
+
+use strict;
+
+use SL::DB::MetaSetup::MebilMapping;
+use SL::DB::Manager::MebilMapping;
+
+__PACKAGE__->meta->initialize;
+
+sub getMappings {
+ my $dbh = shift;
+
+ return SL::DB::Manager::MebilMapping::get_mebilmappings();
+}
+
+1;
--- /dev/null
+# This file has been auto-generated. Do not modify it; it will be overwritten
+# by rose_auto_create_model.pl automatically.
+package SL::DB::MebilMapping;
+
+use strict;
+
+use parent qw(SL::DB::Object);
+
+__PACKAGE__->meta->table('mebil_mapping');
+
+__PACKAGE__->meta->columns(
+ fromacc => { type => 'varchar', length => 200, not_null => 1 },
+ id => { type => 'serial', not_null => 1 },
+ ordering => { type => 'integer', not_null => 1 },
+ toacc => { type => 'varchar', length => 200, not_null => 1 },
+ typ => { type => 'character', length => 1, not_null => 1 },
+);
+
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+
+1;
+;