From: Bernd Bleßmann Date: Tue, 31 Aug 2021 07:07:24 +0000 (+0200) Subject: Kosmetik: CVars für Lagerbestand X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~374 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=748a66d0b3a44c651c0d3744fa0372b3a9074ecf;p=kivitendo-erp.git Kosmetik: CVars für Lagerbestand --- diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index 017e4a249..3aff194e9 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -916,10 +916,11 @@ sub generate_report { 'list_price' => { 'text' => $locale->text('List Price'), }, ); + my %column_defs_cvars = map { +"cvar_$_->{name}" => { 'text' => $_->{description} } } @includeable_custom_variables; + %column_defs = (%column_defs, %column_defs_cvars); + my $href = build_std_url('action=generate_report', grep { $form->{$_} } @hidden_variables); $href .= "&maxrows=".$form->{maxrows}; - my %column_defs_cvars = map { +"cvar_$_->{name}" => { 'text' => $_->{description} } } @includeable_custom_variables; - %column_defs = (%column_defs, %column_defs_cvars); map { $column_defs{$_}->{link} = $href . "&page=".$page."&sort=${_}&order=" . Q($_ eq $sort_col ? 1 - $form->{order} : $form->{order}) } @columns;