From a14a3ff56b00e22c39a2cfb0e465f8c7764a4cd4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 17 Jan 2007 15:51:13 +0000 Subject: [PATCH] =?utf8?q?Jede=20Menge=20Javascript-Kalender=20eingef?= =?utf8?q?=C3=BCgt,=20und=20an=20einigen=20Stellen=20die=20Beschriftung=20?= =?utf8?q?von=20Datumsfeldern=20von=20"an"=20in=20"bis"=20ge=C3=A4ndert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ap.pl | 8 ++++++-- bin/mozilla/ar.pl | 9 +++++++-- bin/mozilla/ct.pl | 12 ++++++++---- bin/mozilla/datev.pl | 11 +++++++++-- bin/mozilla/gl.pl | 1 + bin/mozilla/ic.pl | 6 +++--- bin/mozilla/ir.pl | 8 ++++++-- bin/mozilla/is.pl | 9 +++++++-- bin/mozilla/licenses.pl | 11 ++++++++--- bin/mozilla/rc.pl | 11 +++++++++-- locale/de/all | 1 + locale/de/ct | 2 +- locale/de/gl | 1 + locale/de/ic | 1 + locale/de/menuv3 | 3 ++- 15 files changed, 70 insertions(+), 24 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index a18c638a7..03a2681ac 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -635,6 +635,7 @@ $jsscript "; + my @triggers = (); $form->{paidaccounts}++ if ($form->{"paid_$form->{paidaccounts}"}); for $i (1 .. $form->{paidaccounts}) { print " @@ -674,7 +675,8 @@ $jsscript qq||; $column_data{"exchangerate_$i"} = qq|$exchangerate|; $column_data{"datepaid_$i"} = - qq|{"datepaid_$i"}>|; + qq|{"datepaid_$i"}> + |; $column_data{"source_$i"} = qq||; $column_data{"memo_$i"} = @@ -685,9 +687,11 @@ $jsscript print " "; + push(@triggers, "datepaid_$i", "BL", "trigger_datepaid_$i"); } map { $form->{$_} =~ s/\"/"/g } qw(selectAP_paid); - print qq| + print $form->write_trigger(\%myconfig, scalar(@triggers) / 3, @triggers) . + qq| {paidaccounts}> diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 4fb3d5171..11b73b225 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -655,6 +655,7 @@ $jsscript "; + my @triggers = (); $form->{paidaccounts}++ if ($form->{"paid_$form->{paidaccounts}"}); for $i (1 .. $form->{paidaccounts}) { print " @@ -694,7 +695,8 @@ $jsscript qq||; $column_data{exchangerate} = qq|$exchangerate|; $column_data{datepaid} = - qq|{"datepaid_$i"}>|; + qq|{"datepaid_$i"}> + |; $column_data{source} = qq||; $column_data{memo} = @@ -705,9 +707,12 @@ $jsscript print " "; + push(@triggers, "datepaid_$i", "BL", "trigger_datepaid_$i"); } map { $form->{$_} =~ s/\"/"/g } qw(selectAR_paid); - print qq| + + print $form->write_trigger(\%myconfig, scalar(@triggers) / 3, @triggers) . + qq| {paidaccounts}> diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index d94b9b19a..49672ab54 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -864,6 +864,7 @@ sub form_header { # $locale->text('Customer Number') # $locale->text('Vendor Number') $form->{fokus} = "ct.greeting"; + $form->{jsscript} = 1; $form->header; print qq| @@ -1165,9 +1166,11 @@ $shipto $delivery | . $locale->text('From') . qq| - - | . $locale->text('Bis') . qq| - + + + | . $locale->text('To (time)') . qq| + + @@ -1180,7 +1183,8 @@ $shipto -|; +| . $form->write_trigger(\%myconfig, 2, "from", "BL", "trigger_from", + "to", "BL", "trigger_to"); $lxdebug->leave_sub(); } diff --git a/bin/mozilla/datev.pl b/bin/mozilla/datev.pl index f1110e403..9944abfba 100644 --- a/bin/mozilla/datev.pl +++ b/bin/mozilla/datev.pl @@ -178,6 +178,7 @@ sub export_bewegungsdaten { . $locale->text('III') . qq| |; + $form->{"jsscript"} = 1; $form->header; print qq| @@ -214,9 +215,11 @@ sub export_bewegungsdaten {  | . $locale->text('Datum von') . qq| - + + | . $locale->text('bis') . qq| - + + @@ -226,6 +229,10 @@ sub export_bewegungsdaten { +| . $form->write_trigger(\%myconfig, 2, + "transdatefrom", "BL", "trigger_transdatefrom", + "transdateto", "BL", "trigger_transdateto") . qq| + diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 6e4d1d017..2668083bb 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -293,6 +293,7 @@ sub search { | . $locale->text('From') . qq| $button1 + | . $locale->text('To (time)') . qq| $button2 diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 63ce108ca..29970c4ee 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -185,7 +185,7 @@ sub search {   | . $locale->text('From') . qq| $button1 - | . $locale->text('To') . qq| + | . $locale->text('To (time)') . qq| $button2 @@ -235,7 +235,7 @@ sub search { | . $locale->text('From') . qq| $button1 - | . $locale->text('To') . qq| + | . $locale->text('To (time)') . qq| $button2 @@ -1596,7 +1596,7 @@ sub generate_report { if ($form->{transdateto}) { $callback .= "&transdateto=$form->{transdateto}"; $option .= "\n
" - . $locale->text('To') + . $locale->text('To (time)') . " " . $locale->date(\%myconfig, $form->{transdateto}, 1); } diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 967d532ce..b5df7f32d 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -669,6 +669,7 @@ sub form_footer { |; + my @triggers = (); $form->{paidaccounts}++ if ($form->{"paid_$form->{paidaccounts}"}); for $i (1 .. $form->{paidaccounts}) { @@ -708,7 +709,8 @@ sub form_footer { $column_data{"AP_paid_$i"} = qq||; $column_data{"datepaid_$i"} = - qq|{"datepaid_$i"}>|; + qq|{"datepaid_$i"}> + |; $column_data{"source_$i"} = qq|{"source_$i"}>|; $column_data{"memo_$i"} = @@ -719,6 +721,7 @@ sub form_footer { print qq| |; + push(@triggers, "datepaid_$i", "BL", "trigger_datepaid_$i"); } print qq| @@ -768,7 +771,8 @@ sub form_footer { &menubar; } - print qq| + print $form->write_trigger(\%myconfig, scalar(@triggers) / 3, @triggers) . + qq| {rowcount}> diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 67ffc4dd7..5901ab074 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -1003,6 +1003,8 @@ if ($form->{type} eq "credit_note") { "; + my @triggers = (); + $form->{paidaccounts}++ if ($form->{"paid_$form->{paidaccounts}"}); for $i (1 .. $form->{paidaccounts}) { @@ -1043,7 +1045,8 @@ if ($form->{type} eq "credit_note") { $column_data{"AR_paid_$i"} = qq||; $column_data{"datepaid_$i"} = - qq|{"datepaid_$i"}>|; + qq|{"datepaid_$i"}> + |; $column_data{"source_$i"} = qq||; $column_data{"memo_$i"} = @@ -1052,6 +1055,7 @@ if ($form->{type} eq "credit_note") { map { print qq|$column_data{"${_}_$i"}\n| } @column_index; print " \n"; + push(@triggers, "datepaid_$i", "BL", "trigger_datepaid_$i"); } print qq| @@ -1141,7 +1145,8 @@ if ($form->{type} eq "credit_note") { &menubar; } - print qq| + print $form->write_trigger(\%myconfig, scalar(@triggers) / 3, @triggers) . + qq| {rowcount}> diff --git a/bin/mozilla/licenses.pl b/bin/mozilla/licenses.pl index 52e5e4f86..442ff605f 100644 --- a/bin/mozilla/licenses.pl +++ b/bin/mozilla/licenses.pl @@ -44,6 +44,7 @@ sub quot { sub form_header { $lxdebug->enter_sub(); + $form->{jsscript} = 1; $form->header(); print( @@ -236,8 +237,9 @@ sub print_license_form { | . $locale->text('Valid until') . qq| - {"validuntil"}) . qq|\"> + {"validuntil"}) . qq|\"> + | . $locale->text('Quantity') . qq| @@ -268,7 +270,10 @@ sub print_license_form { qq| -|); +| . + $form->write_trigger(\%myconfig, 1, "validuntil", "BL", + "trigger_validuntil")); + $lxdebug->leave_sub(); } diff --git a/bin/mozilla/rc.pl b/bin/mozilla/rc.pl index 3d93be781..ed87581f3 100644 --- a/bin/mozilla/rc.pl +++ b/bin/mozilla/rc.pl @@ -48,6 +48,7 @@ sub reconciliation { $form->{title} = $locale->text('Reconciliation'); + $form->{"jsscript"} = 1; $form->header; print qq| @@ -70,9 +71,11 @@ sub reconciliation { | . $locale->text('From') . qq| - + + | . $locale->text('Until') . qq| - + + @@ -82,6 +85,10 @@ sub reconciliation { +| . $form->write_trigger(\%myconfig, 2, + "fromdate", "BL", "trigger_fromdate", + "todate", "BL", "trigger_todate") . qq| +
diff --git a/locale/de/all b/locale/de/all index 6e6162edd..9c48c5d71 100644 --- a/locale/de/all +++ b/locale/de/all @@ -992,6 +992,7 @@ gestartet', 'This upgrade script tries to map all existing units in the database to the newly created units.' => 'Dieses Update-Script versucht, alle bestehenden Einheiten automatisch in die neuen Einheiten umzuwandeln.', 'Title' => 'Titel', 'To' => 'An', + 'To (time)' => 'Bis', 'To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.' => 'Um einer Gruppe einen neuen Benutzer hinzuzufügen, ändern und speichern Sie am einfachsten einen bestehen den Zugriffsnamen. Unter dem neuen Namen wird dann ein Benutzer mit denselben Einstellungen angelegt.', 'Top (CSS)' => 'Oben (mit CSS)', 'Top (Javascript)' => 'Oben (mit Javascript)', diff --git a/locale/de/ct b/locale/de/ct index 83dc7d0b1..736838dc8 100644 --- a/locale/de/ct +++ b/locale/de/ct @@ -14,7 +14,6 @@ $self->{texts} = { 'Bcc' => 'Bcc', 'Billing Address' => 'Rechnungsadresse', 'Birthday' => 'Geburtstag', - 'Bis' => 'bis', 'Cannot delete customer!' => 'Kunde kann nicht gelöscht werden!', 'Cannot delete vendor!' => 'Lieferant kann nicht gelöscht werden!', 'Cc' => 'Cc', @@ -95,6 +94,7 @@ $self->{texts} = { 'Tax Number / SSN' => 'Steuernummer', 'Taxable' => 'Steuerpflichtig', 'Title' => 'Titel', + 'To (time)' => 'Bis', 'Type of Business' => 'Kundentyp', 'USt-IdNr.' => 'USt-IdNr.', 'Unit' => 'Einheit', diff --git a/locale/de/gl b/locale/de/gl index 77567e963..e73193bb9 100644 --- a/locale/de/gl +++ b/locale/de/gl @@ -91,6 +91,7 @@ $self->{texts} = { 'Subtotal' => 'Zwischensumme', 'Tax' => 'Steuer', 'Taxkey' => 'Steuerschlüssel', + 'To (time)' => 'Bis', 'Transaction Date missing!' => 'Buchungsdatum fehlt!', 'Transaction deleted!' => 'Buchung gelöscht!', 'Update' => 'Erneuern', diff --git a/locale/de/ic b/locale/de/ic index e3de95949..87ac8fa0c 100644 --- a/locale/de/ic +++ b/locale/de/ic @@ -209,6 +209,7 @@ aktualisieren wollen?', 'TOP100' => 'Top 100', 'The formula needs the following syntax:
For regular article:
Variablename= Variable Unit;
Variablename2= Variable2 Unit2;
...
###
Variable + ( Variable2 / Variable )
Please be beware of the spaces in the formula
' => 'Die Formeln müssen in der folgenden Syntax eingegeben werden:
Bei normalen Artikeln:
Variablenname= Variable Einheit;
Variablenname2= Variable2 Einheit2;
...
###
Variable + Variable2 * ( Variable - Variable2 )
Bitte achten Sie auf die Leerzeichen in der Formel
Es muss jeweils die Gesamte Zeile eingegeben werden', 'To' => 'An', + 'To (time)' => 'Bis', 'Top 100' => 'Top 100', 'Top 100 hinzufuegen' => 'Top 100 hinzufügen', 'Top Level' => 'Hauptartikelbezeichnung', diff --git a/locale/de/menuv3 b/locale/de/menuv3 index 281bb6721..d1f3f9c17 100644 --- a/locale/de/menuv3 +++ b/locale/de/menuv3 @@ -6,7 +6,8 @@ $self->{subs} = { 'acc_menu' => 'acc_menu', 'clock_line' => 'clock_line', 'display' => 'display', - 'section_menu' => 'section_menu', + 'my_length' => 'my_length', + 'print_menu' => 'print_menu', }; 1; -- 2.20.1