From 66881e5e25590cf9a71b2df6f408efaad144c984 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 22 Nov 2006 16:22:47 +0000 Subject: [PATCH] =?utf8?q?Recommit=20von=20r1126=20von=20udo=5Fspallek:=20?= =?utf8?q?Deliverydate=20als=20Option=20bei=20Waren-/Dienstleistungs-/Erze?= =?utf8?q?ugnisberichten=20eingefuegt.=20Dies=20ist=20sehr=20nuetzlich=20f?= =?utf8?q?=C3=BCr=20die=20Fahrtkostenabrechnung=20beim=20Finanzamt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IC.pm | 2 +- bin/mozilla/ic.pl | 17 ++++++++++++++++- locale/de/ic | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/SL/IC.pm b/SL/IC.pm index 446176d36..1ef9dd18e 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -1080,7 +1080,7 @@ sub all_parts { p.priceupdate, p.image, p.drawing, p.microfiche, pg.partsgroup, a.invnumber, a.ordnumber, a.quonumber, i.trans_id, - ct.name|; + ct.name, i.deliverydate|; if ($form->{bought}) { $query = qq| diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 293167893..62758be3e 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -356,6 +356,8 @@ sub search { . $locale->text('Subtotal') . qq|  | . $locale->text('soldtotal') . qq| +  | + . $locale->text('deliverydate') . qq| @@ -1646,8 +1648,12 @@ sub generate_report { $option .= $locale->text('soldtotal') . qq| : $form->{soldtotal}
|; } + if ($form->{l_deliverydate}) { + $callback .= "&deliverydate=$form->{deliverydate}"; + } + @columns = $form->sort_columns( - qw(partnumber description partsgroup bin onhand rop unit listprice linetotallistprice sellprice linetotalsellprice lastcost linetotallastcost priceupdate weight image drawing microfiche invnumber ordnumber quonumber name serialnumber soldtotal) + qw(partnumber description partsgroup bin onhand rop unit listprice linetotallistprice sellprice linetotalsellprice lastcost linetotallastcost priceupdate weight image drawing microfiche invnumber ordnumber quonumber name serialnumber soldtotal deliverydate) ); if ($form->{l_linetotal}) { @@ -1784,6 +1790,11 @@ sub generate_report { . $locale->text('soldtotal') . qq||; + $column_header{deliverydate} = + qq|{revers}&lastsort=$form->{lastsort}>| + . $locale->text('deliverydate') + . qq||; + $form->header; $colspan = $#column_index + 1; @@ -1935,6 +1946,8 @@ sub generate_report { . $form->format_amount(\%myconfig, $ref->{soldtotal}, '', " ") . ""; + $column_data{deliverydate} = "$ref->{deliverydate}"; + $i++; $i %= 2; print ""; @@ -2960,6 +2973,8 @@ sub assembly_row { $column_data{total} = qq|$linetotal|; + $column_data{deliverydate} = qq|$deliverydate|; + print qq| |; diff --git a/locale/de/ic b/locale/de/ic index 311b8db46..cebd96b71 100644 --- a/locale/de/ic +++ b/locale/de/ic @@ -212,6 +212,7 @@ aktualisieren wollen?', 'button' => '?', 'choice' => 'auswählen', 'choice part' => 'Artikel auswählen', + 'deliverydate' => 'Lieferdatum', 'ea' => 'St.', 'emailed to' => 'gemailt an', 'list' => 'auflisten', -- 2.20.1