X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIS.pm;h=590923361bd293b8548ab10128f7628c58ef149b;hb=1e7d8e31721d592284644da88b3f03ccce98d10c;hp=8e7dcc9f156464d6bd6fe433c6f127baa63d2b6f;hpb=a111d6e8e4071fd81d7406e7f3849d6ad28726fd;p=kivitendo-erp.git diff --git a/SL/IS.pm b/SL/IS.pm index 8e7dcc9f1..590923361 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -2159,4 +2159,21 @@ sub is_storno { return $result; } +sub get_standard_accno_current_assets { + $main::lxdebug->enter_sub(); + + my ($self, $myconfig, $form) = @_; + + my $dbh = $form->dbconnect($myconfig); + + my $query = qq| SELECT accno FROM chart WHERE id = (SELECT ar_paid_accno_id FROM defaults)|; + my ($result) = selectrow_query($form, $dbh, $query); + + $dbh->disconnect(); + + $main::lxdebug->leave_sub(); + + return $result; +} + 1;