X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FPart.pm;h=a25b64a74bb3fc6f80bd8aebfd0af6b11a962c1d;hb=52e195fc889bd4bae6bae2a47c649363b2afd6cd;hp=f5a0cd2ccce7e1115bfd252799258d71c88f1ba0;hpb=fa7fc7eeb3ca718914affee06c0629a08d571288;p=kivitendo-erp.git diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index f5a0cd2cc..a25b64a74 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -174,7 +174,7 @@ sub get_chart { require SL::DB::Buchungsgruppe; my $bugru = SL::DB::Buchungsgruppe->load_cached($self->buchungsgruppen_id); my $chart_id = ($type eq 'inventory') ? ($self->inventory_accno_id ? $bugru->inventory_accno_id : undef) - : $bugru->call_sub("${type}_accno_id_${taxzone}"); + : $bugru->call_sub("${type}_accno_id", $taxzone); if ($chart_id) { my $chart = $all_charts->{$chart_id} // SL::DB::Chart->load_cached($chart_id)->load; @@ -318,7 +318,7 @@ This function looks up the income (for trueish values of C<$params{is_sales}>) or expense (for falsish values of C<$params{is_sales}>) account for the current part. It uses the part's associated buchungsgruppe and uses the fields belonging to the tax -zone given by C<$params{taxzone}> (range 0..3). +zone given by C<$params{taxzone}>. The information retrieved by the function is cached. @@ -330,8 +330,7 @@ C<$params{type}> and tax zone C<$params{taxzone}> the three key words C, C and C. This function uses the part's associated buchungsgruppe and uses the -fields belonging to the tax zone given by C<$params{taxzone}> (range -0..3). +fields belonging to the tax zone given by C<$params{taxzone}>. The information retrieved by the function is cached.