X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2Fmebil%2FMapping.pm;fp=SL%2Fmebil%2FMapping.pm;h=ca2d5ea6318e422569accb4f9de9a4d71b30bbfe;hb=5349a1ed016ae603b39d73747eccc6792707db1c;hp=0000000000000000000000000000000000000000;hpb=2a0cbd885790174fa0f212e6661b30362650a42c;p=kivitendo-erp.git diff --git a/SL/mebil/Mapping.pm b/SL/mebil/Mapping.pm new file mode 100644 index 000000000..ca2d5ea63 --- /dev/null +++ b/SL/mebil/Mapping.pm @@ -0,0 +1,22 @@ +package SL::mebil::Mapping; + +use strict; + +# Manager methods for mebil + +sub new { + # parameter: 1) ... + my $name = shift; + my $my_data = { + error_channel => shift, + dbh => shift}; + bless $my_data; + return $my_data; +} +sub get_mapping { + my $self = shift; + my $sql = "SELECT fromacc,typ,toacc from mebil_mapping order by ordering"; + return SL::DBUtils::selectall_hashref_query($self->{error_channel}, $self->{dbh}, $sql); +} + +1;