From 72911d5ea1346df76eb1c46c297c6a1624c35c59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 11 Aug 2020 10:59:57 +0200 Subject: [PATCH] =?utf8?q?pod=20erg=C3=A4nzung=20GL.pm?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/GL.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SL/GL.pm b/SL/GL.pm index 3b99238f7..a87fcb6c3 100644 --- a/SL/GL.pm +++ b/SL/GL.pm @@ -814,11 +814,12 @@ SL::GL - some useful GL functions =over 4 -=item C +=item C $transdate $tax_id -Returns a list of taxes for a certain chart and date to be used for dropdowns, -for e.g. ar/ap/gl records. +Returns a list of valid taxes for a certain chart. +If the optional param transdate exists one entry in the returning list +may get the attribute C for this specific tax-dependant date. The possible entries are filtered by the charttype of the tax, i.e. only taxes whose chart_categories match the category of the chart will be shown. @@ -828,6 +829,7 @@ dropdown anymore. If we are loading an old record and know its tax_id (from acc_trans), we can pass $tax_id as the third parameter and be sure that the original tax always appears in the dropdown. +The functions returns an array which may be used for building dropdowns in ar/ap/gl code. =back =head1 TODO -- 2.20.1