From 78650e309d0101ce7ec8ba60315ed5cc5fa42339 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 19 Jan 2007 09:31:28 +0000 Subject: [PATCH] =?utf8?q?In=20den=20Einkaufs-=20und=20Verkaufsmasken=20ei?= =?utf8?q?ne=20Checkbox=20"Details=20anzeigen"=20eingef=C3=BCgt,=20mit=20d?= =?utf8?q?er=20die=20jeweils=20zweite=20Positionszeile=20angezeigt=20bzw.?= =?utf8?q?=20versteckt=20werden=20kann.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/io.pl | 16 +++++++++++++++- bin/mozilla/is.pl | 6 ++++-- bin/mozilla/oe.pl | 4 +++- js/show_form_details.js | 4 ++++ locale/de/all | 3 ++- locale/de/cn | 3 ++- locale/de/dn | 3 ++- locale/de/ic | 3 ++- locale/de/io | 3 ++- locale/de/ir | 3 ++- locale/de/is | 3 ++- locale/de/oe | 3 ++- 12 files changed, 42 insertions(+), 12 deletions(-) create mode 100644 js/show_form_details.js diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index bb99e2c57..25be6fe9a 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -90,6 +90,7 @@ use Data::Dumper; sub display_row { $lxdebug->enter_sub(); my $numrows = shift; + if ($lizenzen && $form->{vc} eq "customer") { if ($form->{type} =~ /sales_order/) { @column_index = (runningnumber, partnumber, description, ship, qty); @@ -197,9 +198,18 @@ sub display_row { . qq||; ############## ENDE Neueintrag ################## + $form->{"show_details"} = + !defined($form->{"show_details"}) ? 1 : + $form->{"show_details"} ? 1 : 0; + my $show_details_new = 1 - $form->{"show_details"}; + my $show_details_checked = $form->{"show_details"} ? "checked" : ""; + print qq| + + + | . $locale->text("Show details") . qq|
|; @@ -438,9 +448,13 @@ sub display_row { # Eintrag fuer Version 2.2.0 geaendert # # neue Optik im Rechnungsformular # ######################################## + + my $row_style_attr = + 'style="display:none;"' if (!$form->{"show_details"}); + # print second row print qq| - +
|; if ($lizenzen && $form->{type} eq "invoice" && $form->{vc} eq "customer") { diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 5901ab074..d918b50d8 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -582,6 +582,8 @@ sub form_header { $onload = qq|alert('$credittext')|; } + $form->{"javascript"} .= qq|