From: Sven Schöling Date: Mon, 19 Nov 2012 12:58:52 +0000 (+0100) Subject: Merge branch 'master' of vc.linet-services.de:public/lx-office-erp X-Git-Tag: release-3.0.0beta2~11^2~2^2 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/4f08d0be48e16be585e3c33a0ad82d56b37ac55d?hp=7cf1088bedcd550475867bfde60ad711127f9797 Merge branch 'master' of vc.linet-services.de:public/lx-office-erp --- diff --git a/SL/IS.pm b/SL/IS.pm index edc02d9c3..e240d979a 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -2136,7 +2136,7 @@ sub get_pricegroups_for_parts { $pkr->{selected} = ' selected'; # unless $form->{selected}; # no customer pricesgroup set - if ($pkr->{price_unfmt} == $pkr->{default_sellprice}) { + if ($pkr->{price_ufmt} == $pkr->{default_sellprice}) { $pkr->{price} = $form->{"sellprice_$i"}; @@ -2147,7 +2147,7 @@ sub get_pricegroups_for_parts { $form->{"sellprice_$i"} = $pkr->{price}; } - } elsif ($pkr->{price_unfmt} == $pkr->{default_sellprice} and $pkr->{default_sellprice} != 0) { + } elsif ($pkr->{price_ufmt} == $pkr->{default_sellprice} and $pkr->{default_sellprice} != 0) { $pkr->{price} = $form->{"sellprice_$i"}; $pkr->{selected} = ' selected'; } diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index a81f451a6..d7cebc4dc 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -209,6 +209,7 @@ sub list_names { addr_city business_id ), "$form->{db}number", map({ "cvar_$_->{name}" } @searchable_custom_variables), + map({'cvar_'. $_->{name} .'_qtyop'} grep({$_->{type} eq 'number'} @searchable_custom_variables)), map({ "l_$_" } @columns), ); diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 5b3e66563..f01b5afcb 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1238,8 +1238,14 @@ sub generate_report { map { $column_defs{$_}->{visible} ||= $form->{"l_$_"} ? 1 : 0 } @columns; map { $column_defs{$_}->{align} = 'right' } qw(onhand sellprice listprice lastcost linetotalsellprice linetotallastcost linetotallistprice rop weight soldtotal), @pricegroup_columns; - my @hidden_variables = (qw(l_subtotal l_linetotal searchitems itemstatus bom l_pricegroups), @itemstatus_keys, @callback_keys, - map({ "cvar_$_->{name}" } @searchable_custom_variables), map { "l_$_" } @columns); + my @hidden_variables = ( + qw(l_subtotal l_linetotal searchitems itemstatus bom l_pricegroups), + @itemstatus_keys, + @callback_keys, + map({ "cvar_$_->{name}" } @searchable_custom_variables), + map({'cvar_'. $_->{name} .'_qtyop'} grep({$_->{type} eq 'number'} @searchable_custom_variables)), + map({ "l_$_" } @columns), + ); my $callback = build_std_url('action=generate_report', grep { $form->{$_} } @hidden_variables); diff --git a/bin/mozilla/projects.pl b/bin/mozilla/projects.pl index b7614ffc6..bda1c6d96 100644 --- a/bin/mozilla/projects.pl +++ b/bin/mozilla/projects.pl @@ -121,6 +121,7 @@ sub project_report { my @columns = qw(projectnumber description active); my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs }; + my @searchable_custom_variables = grep { $_->{searchable} } @{ $cvar_configs }; my %column_defs_cvars = (); foreach (@includeable_custom_variables) { $column_defs_cvars{"cvar_$_->{name}"} = { @@ -132,7 +133,11 @@ sub project_report { push @columns, map { "cvar_$_->{name}" } @includeable_custom_variables; - my @hidden_vars = ('filter', map { ('cvar_'. $_->{name} , 'l_cvar_'. $_->{name}) } @includeable_custom_variables); + my @hidden_vars = ( + 'filter', + map({ ('cvar_'. $_->{name} , 'l_cvar_'. $_->{name}) } @includeable_custom_variables), + map({'cvar_'. $_->{name} .'_qtyop'} grep({$_->{type} eq 'number'} @searchable_custom_variables)), + ); my $href = build_std_url('action=project_report', @hidden_vars); diff --git a/templates/webpages/amcvar/search_filter.html b/templates/webpages/amcvar/search_filter.html index f97c4ec94..fc2dffa24 100644 --- a/templates/webpages/amcvar/search_filter.html +++ b/templates/webpages/amcvar/search_filter.html @@ -31,7 +31,7 @@ - + [%- ELSIF var.type == 'customer' %]