From fef43fa5867d3389a5e967dd758545b7a3904f00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 10 Jan 2012 11:10:03 +0100 Subject: [PATCH] Menge und Soldtotal in Warensuche getrennt. Fix zu Bug 1635. Ausserdem die Spalten umsortiert und die Spalten sinnvoller benannt. Vorher wurde soldtotal im bsooqr mode auf die onhand Spalte gelegt, das musste einfach nur entfernt werden. --- SL/IC.pm | 6 ------ bin/mozilla/ic.pl | 8 ++++---- locale/de/all | 2 ++ templates/webpages/ic/search.html | 2 +- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/SL/IC.pm b/SL/IC.pm index 5396c7add..67fbba09c 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -1007,12 +1007,6 @@ sub all_parts { $joins_needed{apoe} = 1 if $joins_needed{cv} || grep { $form->{$_} || $form->{"l_$_"} } @apoe_filters; $joins_needed{invoice_oi} = 1 if $joins_needed{apoe} || grep { $form->{$_} || $form->{"l_$_"} } @invoice_oi_filters; - # in bsoorq, use qtys instead of onhand - if ($joins_needed{invoice_oi}) { - $renamed_columns{onhand} = 'onhand_before_bsooqr'; - $renamed_columns{qty} = 'onhand'; - } - # special case for description search. # up in the simple filter section the description filter got interpreted as something like: WHERE description ILIKE '%$form->{description}%' # now we'd like to search also for the masked description entered in orderitems and invoice, so... diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index c6714e6b4..8c915f400 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1043,7 +1043,7 @@ sub generate_report { 'listprice' => { 'text' => $locale->text('List Price'), }, 'microfiche' => { 'text' => $locale->text('Microfiche'), }, 'name' => { 'text' => $locale->text('Name'), }, - 'onhand' => { 'text' => $locale->text('Qty'), }, + 'onhand' => { 'text' => $locale->text('Stocked Qty'), }, 'ordnumber' => { 'text' => $locale->text('Order Number'), }, 'partnumber' => { 'text' => $locale->text('Part Number'), }, 'partsgroup' => { 'text' => $locale->text('Group'), }, @@ -1052,7 +1052,7 @@ sub generate_report { 'rop' => { 'text' => $locale->text('ROP'), }, 'sellprice' => { 'text' => $locale->text('Sell Price'), }, 'serialnumber' => { 'text' => $locale->text('Serial Number'), }, - 'soldtotal' => { 'text' => $locale->text('soldtotal'), }, + 'soldtotal' => { 'text' => $locale->text('Qty in Selected Records'), }, 'transdate' => { 'text' => $locale->text('Transdate'), }, 'unit' => { 'text' => $locale->text('Unit'), }, 'weight' => { 'text' => $locale->text('Weight'), }, @@ -1201,10 +1201,10 @@ sub generate_report { IC->all_parts(\%myconfig, \%$form); my @columns = qw( - partnumber description partsgroup bin onhand rop unit listprice + partnumber description partsgroup bin onhand rop soldtotal unit listprice linetotallistprice sellprice linetotalsellprice lastcost linetotallastcost priceupdate weight image drawing microfiche invnumber ordnumber quonumber - transdate name serialnumber soldtotal deliverydate ean + transdate name serialnumber deliverydate ean ); my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs }; diff --git a/locale/de/all b/locale/de/all index db410c758..555be1e07 100644 --- a/locale/de/all +++ b/locale/de/all @@ -1428,6 +1428,7 @@ $self->{texts} = { 'Purpose' => 'Verwendungszweck', 'Qty' => 'Menge', 'Qty according to delivery order' => 'Menge laut Lieferschein', + 'Qty in Selected Records' => 'Menge in gewählten Belegen', 'Qty in stock' => 'Lagerbestand', 'Quantity' => 'Menge', 'Quantity missing.' => 'Die Mengenangabe fehlt.', @@ -1652,6 +1653,7 @@ $self->{texts} = { 'Steuersatz' => 'Steuersatz', 'Stock' => 'Einlagern', 'Stock value' => 'Bestandswert', + 'Stocked Qty' => 'Lagermenge', 'Storno' => 'Storno', 'Storno (one letter abbreviation)' => 'S', 'Storno Invoice' => 'Stornorechnung', diff --git a/templates/webpages/ic/search.html b/templates/webpages/ic/search.html index 1d94fe808..6235d00b0 100644 --- a/templates/webpages/ic/search.html +++ b/templates/webpages/ic/search.html @@ -258,7 +258,7 @@ - + -- 2.20.1