From: Sven Schöling Date: Tue, 10 Jan 2012 10:10:03 +0000 (+0100) Subject: Menge und Soldtotal in Warensuche getrennt. X-Git-Tag: release-2.7.0beta1~73^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fef43fa;p=kivitendo-erp.git 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. --- 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 @@ - +