X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FWH.pm;h=89a937f9ac932d3f58e2c3f4736e5fa03dcfef20;hb=12f8fb507f7531f2e434214eb9a8c4d7a55c75d5;hp=eaba55332cf5f352398a19300ac73166ea3864c0;hpb=5067d7bd31514962af9730b33323b831d87164f8;p=kivitendo-erp.git diff --git a/SL/WH.pm b/SL/WH.pm index eaba55332..89a937f9a 100644 --- a/SL/WH.pm +++ b/SL/WH.pm @@ -368,11 +368,6 @@ sub get_warehouse_journal { push @filter_vars, like($filter{description}); } - if ($filter{classification_id}) { - push @filter_ary, "p.classification_id = ?"; - push @filter_vars, $filter{classification_id}; - } - if ($filter{chargenumber}) { push @filter_ary, "i1.chargenumber ILIKE ?"; push @filter_vars, like($filter{chargenumber}); @@ -431,9 +426,6 @@ sub get_warehouse_journal { "qty" => "ABS(SUM(i1.qty))", "partnumber" => "p.partnumber", "partdescription" => "p.description", - "classification_id" => "p.classification_id", - "assembly" => "p.assembly", - "inventory_accno_id" => "p.inventory_accno_id", "bindescription" => "b.description", "chargenumber" => "i1.chargenumber", "bestbefore" => "i1.bestbefore", @@ -465,9 +457,6 @@ sub get_warehouse_journal { "warehouse_from" => "'$filter{na}'", }; - $form->{l_classification_id} = 'Y'; - $form->{l_assembly} = 'Y'; - $form->{l_inventory_accno_id} = 'Y'; $form->{l_invoice_id} = $form->{l_oe_id} if $form->{l_oe_id}; # build the select clauses. @@ -625,7 +614,6 @@ SQL # - warehouse_id - will return matches with this warehouse_id only # - partnumber - will return only matches where the given string is a substring of the partnumber # - partsid - will return matches with this parts_id only -# - classification_id - will return matches with this parts with this classification only # - description - will return only matches where the given string is a substring of the description # - chargenumber - will return only matches where the given string is a substring of the chargenumber # - bestbefore - will return only matches with this bestbefore date @@ -677,11 +665,6 @@ sub get_warehouse_report { push @filter_vars, like($filter{partnumber}); } - if ($filter{classification_id}) { - push @filter_ary, "p.classification_id = ?"; - push @filter_vars, $filter{classification_id}; - } - if ($filter{description}) { push @filter_ary, "p.description ILIKE ?"; push @filter_vars, like($filter{description}); @@ -754,9 +737,6 @@ sub get_warehouse_report { "warehouseid" => "i.warehouse_id", "partnumber" => "p.partnumber", "partdescription" => "p.description", - "classification_id" => "p.classification_id", - "assembly" => "p.assembly", - "inventory_accno_id" => "p.inventory_accno_id", "bindescription" => "b.description", "binid" => "b.id", "chargenumber" => "i.chargenumber", @@ -767,9 +747,6 @@ sub get_warehouse_report { "partunit" => "p.unit", "stock_value" => "p.lastcost / COALESCE(pfac.factor, 1)", ); - $form->{l_classification_id} = 'Y'; - $form->{l_assembly} = 'Y'; - $form->{l_inventory_accno_id} = 'Y'; my $select_clause = join ', ', map { +/^l_/; "$select_tokens{$'} AS $'" } ( grep( { !/qty/ and /^l_/ and $form->{$_} eq 'Y' } keys %$form), qw(l_parts_id l_qty l_partunit) );