From: Sven Schöling Date: Mon, 12 Jul 2010 14:13:05 +0000 (+0200) Subject: Merge branch 'template_locales' X-Git-Tag: release-2.6.2beta1~331 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/2d3f862b7af94f31860dd264eef7c1bc7de7eae2?hp=d5d5779f5bc70ed1b224ff57a147a5db25767d88 Merge branch 'template_locales' Conflicts: templates/webpages/admin/edit_user_master.html templates/webpages/admin/list_users_de.html templates/webpages/is/form_header_master.html --- diff --git a/SL/RP.pm b/SL/RP.pm index 81637ca5b..88f4ebe55 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -1198,7 +1198,7 @@ sub aging { AND (exchangerate.transdate = ${arap}.transdate)) AS exchangerate FROM ${arap}, ${ct} WHERE ((paid != amount) OR (datepaid > (date $todate) AND datepaid is not null)) - AND (${arap}.storno IS FALSE) + AND NOT COALESCE (${arap}.storno, 'f') AND (${arap}.${ct}_id = ${ct}.id) AND (${ct}.id = ?) AND (transdate <= (date $todate) $fromwhere ) diff --git a/SL/User.pm b/SL/User.pm index 0fbd66a39..16ad74ea3 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -1003,7 +1003,7 @@ sub config_vars { bestellungen rechnungen anfragen lieferantenbestellungen einkaufsrechnungen taxnumber co_ustid duns menustyle template_format default_media default_printer_id copies show_form_details favorites - pdonumber sdonumber hide_cvar_search_options); + pdonumber sdonumber hide_cvar_search_options mandatory_departments); $main::lxdebug->leave_sub(); diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 62edff23e..91836ebb7 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1017,6 +1017,12 @@ sub post { $form->isblank("duedate", $locale->text("Due Date missing!")); $form->isblank("vendor", $locale->text('Vendor missing!')); + if ($myconfig{mandatory_departments} && !$form->{department}) { + $form->{saved_message} = $::locale->text('You have to specify a department.'); + update(); + exit; + } + my $closedto = $form->datetonum($form->{closedto}, \%myconfig); my $transdate = $form->datetonum($form->{transdate}, \%myconfig); $form->error($locale->text('Cannot post transaction for a closed period!')) if ($form->date_closed($form->{"transdate"}, \%myconfig)); diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index f03a74b7d..b5bd9be6c 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -1089,6 +1089,12 @@ sub post { $form->isblank("duedate", $locale->text('Due Date missing!')); $form->isblank("customer", $locale->text('Customer missing!')); + if ($myconfig{mandatory_departments} && !$form->{department}) { + $form->{saved_message} = $::locale->text('You have to specify a department.'); + update(); + exit; + } + my $closedto = $form->datetonum($form->{closedto}, \%myconfig); my $transdate = $form->datetonum($form->{transdate}, \%myconfig); $form->error($locale->text('Cannot post transaction for a closed period!')) if ($form->date_closed($form->{"transdate"}, \%myconfig)); diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 5834a485f..1baed9102 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -1154,7 +1154,14 @@ sub form_header { - + | . + + ($form->{saved_message} ? qq| + + | : '') . + +qq|
$form->{title}
$form->{saved_message} +
@@ -1602,6 +1609,12 @@ sub post { my $form = $main::form; my $locale = $main::locale; + if ($::myconfig{mandatory_departments} && !$form->{department}) { + $form->{saved_message} = $::locale->text('You have to specify a department.'); + update(); + exit; + } + $form->{title} = $locale->text("$form->{title} General Ledger Transaction"); $form->{storno} = 0; diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 042fd4be9..06f6d059b 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -667,6 +667,12 @@ sub post { exit; } + if ($myconfig{mandatory_departments} && !$form->{department_id}) { + $form->{saved_message} = $::locale->text('You have to specify a department.'); + update(); + exit; + } + remove_emptied_rows(); &validate_items; diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index a47b7e809..3c5282cbe 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -654,6 +654,13 @@ sub post { &update; exit; } + + if ($myconfig{mandatory_departments} && !$form->{department_id}) { + $form->{saved_message} = $::locale->text('You have to specify a department.'); + update(); + exit; + } + if ($form->{second_run}) { $form->{print_and_post} = 0; } diff --git a/bin/mozilla/kopf.pl b/bin/mozilla/kopf.pl index 3e01a31a0..e8fa8a35a 100644 --- a/bin/mozilla/kopf.pl +++ b/bin/mozilla/kopf.pl @@ -108,7 +108,12 @@ print qq| - + diff --git a/image/icons/24x24/leftarrow_24.png b/image/icons/24x24/leftarrow_24.png new file mode 100644 index 000000000..8786f74ad Binary files /dev/null and b/image/icons/24x24/leftarrow_24.png differ diff --git a/image/icons/24x24/rightarrow_24.png b/image/icons/24x24/rightarrow_24.png new file mode 100644 index 000000000..b5f43b9ef Binary files /dev/null and b/image/icons/24x24/rightarrow_24.png differ diff --git a/locale/de/admin b/locale/de/admin index fec1eabbb..b0933a8e5 100644 --- a/locale/de/admin +++ b/locale/de/admin @@ -301,7 +301,7 @@ $self->{subs} = { 'gruppen_bearbeiten' => 'edit_groups', 'system_sperren' => 'lock_system', 'anmeldung' => 'login', - 'abmeldung' => 'logout', + 'abmelden' => 'logout', 'neue_ware' => 'new_part', 'nein' => 'no', 'datenbankadministration' => 'pg_database_administration', diff --git a/locale/de/all b/locale/de/all index 5ba5cd31c..e61de8cd0 100644 --- a/locale/de/all +++ b/locale/de/all @@ -771,6 +771,7 @@ $self->{texts} = { 'General ledger corrections' => 'Korrekturen im Hauptbuch', 'Generic Tax Report' => 'USTVA Bericht', 'Given Name' => 'Vorname', + 'Go one step back' => 'Einen Schritt zurück', 'Greeting' => 'Anrede', 'Greetings' => 'Anreden', 'Group' => 'Warengruppe', @@ -783,6 +784,7 @@ $self->{texts} = { 'Groups' => 'Warengruppen', 'HTML' => 'HTML', 'HTML Templates' => 'HTML-Vorlagen', + 'Hardcopy' => 'Seite drucken', 'Has serial number' => 'Hat eine Serienummer', 'Header' => 'Überschrift', 'Heading' => 'Überschrift', @@ -955,7 +957,7 @@ $self->{texts} = { 'Login' => 'Anmeldung', 'Login Name' => 'Benutzername', 'Login name missing!' => 'Loginname fehlt.', - 'Logout' => 'Abmeldung', + 'Logout' => 'Abmelden', 'Long Dates' => 'Lange Monatsnamen', 'Long Description' => 'Langtext', 'Lx-Office 2.4.0 introduces two new concepts: tax zones and Buchungsgruppen.' => 'Lx-Office 2.4.0 führt zwei neue Konzepte ein: Steuerzonen und Buchungsgruppen.', @@ -971,6 +973,7 @@ $self->{texts} = { 'Make' => 'Lieferant', 'Manage license keys' => 'Lizenzschlüssel verwalten', 'Mandantennummer' => 'Mandantennummer', + 'Mandatory Departments' => 'Benutzer muss Abteilungen vergeben', 'Mar' => 'März', 'March' => 'März', 'Margins' => 'Seitenränder', @@ -1021,6 +1024,7 @@ $self->{texts} = { 'Netto Terms' => 'Zahlungsziel netto', 'New Buchungsgruppe #1' => 'Neue Buchungsgruppe #1', 'New Templates' => 'neue Vorlagen', + 'New Win/Tab' => 'Neues Fenster', 'New assembly' => 'Neues Erzeugnis', 'New bank account' => 'Neues Bankkonto', 'New contact' => 'Neuer Ansprechpartner', @@ -1104,6 +1108,7 @@ $self->{texts} = { 'Only due follow-ups' => 'Nur fällige Wiedervorlagen', 'Open' => 'Offen', 'Open Amount' => 'Offener Betrag', + 'Open a further Lx-Office Window or Tab' => 'Neues Fenster bzw. Tab öffnen', 'Open amount' => 'offener Betrag', 'OpenDocument/OASIS' => 'OpenDocument/OASIS', 'Openings' => 'Öffnungszeiten', @@ -1870,6 +1875,7 @@ $self->{texts} = { 'You have to create new Buchungsgruppen for all the combinations of inventory, income and expense accounts that have been used already.' => 'Sie müssen neue Buchungsgruppen für alle Kombinationen aus Inventar-, Erlös- und Aufwandskonto, die bereits benutzt wurden.', 'You have to enter a company name in your user preferences (see the "Program" menu, "Preferences").' => 'Sie müssen einen Firmennamen in Ihren Benutzereinstellungen angeben (siehe "Programm"-Menü, "Benuztereinstellungen).', 'You have to fill in at least an account number, the bank code, the IBAN and the BIC.' => 'Sie müssen zumindest die Kontonummer, die Bankleitzahl, die IBAN und den BIC angeben.', + 'You have to specify a department.' => 'Sie müssen eine Abteilung wählen.', 'You have to specify an execution date for each antry.' => 'Sie müssen für jeden zu buchenden Eintrag ein Ausführungsdatum angeben.', 'You must chose a user.' => 'Sie müssen einen Benutzer auswählen.', 'You should create a backup of the database before proceeding because the backup might not be reversible.' => 'Sie sollten eine Sicherungskopie der Datenbank erstellen, bevor Sie fortfahren, da die Aktualisierung unter Umständen nicht umkehrbar ist.', @@ -1927,7 +1933,6 @@ $self->{texts} = { 'disposed' => 'Entsorgung', 'done' => 'erledigt', 'down' => 'runter', - 'drucken' => 'drucken', 'dunning_list' => 'mahnungsliste', 'eMail Send?' => 'eMail-Versand?', 'eMail?' => 'eMail?', diff --git a/locale/de/ap b/locale/de/ap index fac21417f..7f21bb581 100644 --- a/locale/de/ap +++ b/locale/de/ap @@ -267,6 +267,7 @@ $self->{texts} = { 'Warehouse management' => 'Lagerverwaltung/Bestandsveränderung', 'Yes' => 'Ja', 'You do not have the permissions to access this function.' => 'Sie verfügen nicht über die notwendigen Rechte, um auf diese Funktion zuzugreifen.', + 'You have to specify a department.' => 'Sie müssen eine Abteilung wählen.', 'Your PostgreSQL installationen uses UTF-8 as its encoding. Therefore you have to configure Lx-Office to use UTF-8 as well.' => 'Ihre PostgreSQL-Installation benutzt UTF-8 als Zeichensatz. Sie müssen deshalb Lx-Office so konfigurieren, dass es ebenfalls UTF-8 als Zeichensatz benutzt.', 'Zero amount posting!' => 'Buchung ohne Wert', '[email]' => '[email]', diff --git a/locale/de/ar b/locale/de/ar index 9003cb0e7..0ec18bc67 100644 --- a/locale/de/ar +++ b/locale/de/ar @@ -271,6 +271,7 @@ $self->{texts} = { 'Warehouse management' => 'Lagerverwaltung/Bestandsveränderung', 'Yes' => 'Ja', 'You do not have the permissions to access this function.' => 'Sie verfügen nicht über die notwendigen Rechte, um auf diese Funktion zuzugreifen.', + 'You have to specify a department.' => 'Sie müssen eine Abteilung wählen.', 'Your PostgreSQL installationen uses UTF-8 as its encoding. Therefore you have to configure Lx-Office to use UTF-8 as well.' => 'Ihre PostgreSQL-Installation benutzt UTF-8 als Zeichensatz. Sie müssen deshalb Lx-Office so konfigurieren, dass es ebenfalls UTF-8 als Zeichensatz benutzt.', 'Zero amount posting!' => 'Buchung ohne Wert', '[email]' => '[email]', diff --git a/locale/de/gl b/locale/de/gl index 79d85dab3..e8e1ecaf5 100644 --- a/locale/de/gl +++ b/locale/de/gl @@ -250,6 +250,7 @@ $self->{texts} = { 'Warehouse management' => 'Lagerverwaltung/Bestandsveränderung', 'Yes' => 'Ja', 'You do not have the permissions to access this function.' => 'Sie verfügen nicht über die notwendigen Rechte, um auf diese Funktion zuzugreifen.', + 'You have to specify a department.' => 'Sie müssen eine Abteilung wählen.', 'Your PostgreSQL installationen uses UTF-8 as its encoding. Therefore you have to configure Lx-Office to use UTF-8 as well.' => 'Ihre PostgreSQL-Installation benutzt UTF-8 als Zeichensatz. Sie müssen deshalb Lx-Office so konfigurieren, dass es ebenfalls UTF-8 als Zeichensatz benutzt.', '[email]' => '[email]', 'bin_list' => 'Lagerliste', diff --git a/locale/de/ir b/locale/de/ir index 7d2b1c180..7ae7c8454 100644 --- a/locale/de/ir +++ b/locale/de/ir @@ -267,6 +267,7 @@ $self->{texts} = { 'Warehouse management' => 'Lagerverwaltung/Bestandsveränderung', 'Yes' => 'Ja', 'You do not have the permissions to access this function.' => 'Sie verfügen nicht über die notwendigen Rechte, um auf diese Funktion zuzugreifen.', + 'You have to specify a department.' => 'Sie müssen eine Abteilung wählen.', 'Your PostgreSQL installationen uses UTF-8 as its encoding. Therefore you have to configure Lx-Office to use UTF-8 as well.' => 'Ihre PostgreSQL-Installation benutzt UTF-8 als Zeichensatz. Sie müssen deshalb Lx-Office so konfigurieren, dass es ebenfalls UTF-8 als Zeichensatz benutzt.', 'Zipcode' => 'PLZ', '[email]' => '[email]', diff --git a/locale/de/is b/locale/de/is index 8cd031ce3..eecb8274b 100644 --- a/locale/de/is +++ b/locale/de/is @@ -270,6 +270,7 @@ $self->{texts} = { 'Warehouse management' => 'Lagerverwaltung/Bestandsveränderung', 'Yes' => 'Ja', 'You do not have the permissions to access this function.' => 'Sie verfügen nicht über die notwendigen Rechte, um auf diese Funktion zuzugreifen.', + 'You have to specify a department.' => 'Sie müssen eine Abteilung wählen.', 'Your PostgreSQL installationen uses UTF-8 as its encoding. Therefore you have to configure Lx-Office to use UTF-8 as well.' => 'Ihre PostgreSQL-Installation benutzt UTF-8 als Zeichensatz. Sie müssen deshalb Lx-Office so konfigurieren, dass es ebenfalls UTF-8 als Zeichensatz benutzt.', 'Zipcode' => 'PLZ', '[email]' => '[email]', diff --git a/locale/de/kopf b/locale/de/kopf index a3d47815b..949628984 100644 --- a/locale/de/kopf +++ b/locale/de/kopf @@ -1,8 +1,13 @@ #!/usr/bin/perl $self->{texts} = { - 'Logout' => 'Abmeldung', - 'drucken' => 'drucken', + 'Back' => 'Zurück', + 'Go one step back' => 'Einen Schritt zurück', + 'Hardcopy' => 'Seite drucken', + 'Logout' => 'Abmelden', + 'New Win/Tab' => 'Neues Fenster', + 'Open a further Lx-Office Window or Tab' => 'Neues Fenster bzw. Tab öffnen', + 'Print' => 'Drucken', }; $self->{subs} = { diff --git a/locale/de/menu b/locale/de/menu index 84979dacd..86c9b3bd9 100644 --- a/locale/de/menu +++ b/locale/de/menu @@ -136,7 +136,7 @@ $self->{texts} = { 'List Tax' => 'Bearbeiten', 'List Warehouses' => 'Lager anzeigen', 'List bank accounts' => 'Bankkonten anzeigen', - 'Logout' => 'Abmeldung', + 'Logout' => 'Abmelden', 'Manage license keys' => 'Lizenzschlüssel verwalten', 'Master Data' => 'Stammdaten', 'May set the BCC field when sending emails' => 'Beim Verschicken von Emails das Feld \'BCC\' setzen', diff --git a/locale/de/menujs b/locale/de/menujs index 92780da0d..4a47d7688 100644 --- a/locale/de/menujs +++ b/locale/de/menujs @@ -44,7 +44,7 @@ $self->{texts} = { 'Error in database control file \'%s\': %s' => 'Fehler in Datenbankupgradekontrolldatei \'%s\': %s', 'File' => 'Datei', 'General ledger and cash' => 'Finanzbuchhaltung und Zahlungsverkehr', - 'Logout' => 'Abmeldung', + 'Logout' => 'Abmelden', 'Manage license keys' => 'Lizenzschlüssel verwalten', 'Master Data' => 'Stammdaten', 'May set the BCC field when sending emails' => 'Beim Verschicken von Emails das Feld \'BCC\' setzen', diff --git a/locale/de/menunew b/locale/de/menunew index 7a6a9a948..c05b803b5 100644 --- a/locale/de/menunew +++ b/locale/de/menunew @@ -135,7 +135,7 @@ $self->{texts} = { 'List Tax' => 'Bearbeiten', 'List Warehouses' => 'Lager anzeigen', 'List bank accounts' => 'Bankkonten anzeigen', - 'Logout' => 'Abmeldung', + 'Logout' => 'Abmelden', 'Manage license keys' => 'Lizenzschlüssel verwalten', 'Master Data' => 'Stammdaten', 'May set the BCC field when sending emails' => 'Beim Verschicken von Emails das Feld \'BCC\' setzen', diff --git a/templates/webpages/admin/edit_user.html b/templates/webpages/admin/edit_user.html index 81eb1ea5e..b30278050 100644 --- a/templates/webpages/admin/edit_user.html +++ b/templates/webpages/admin/edit_user.html @@ -182,6 +182,13 @@ + + + +
  [| . $locale->text('drucken') . qq|] +  [| . $locale->text('Print') . qq|] +  [| . $locale->text('New Win/Tab') . qq|] +  [| . $locale->text('Back') . qq|] + + | . $login . $datum . qq|  
[% 'Mandatory Departments' | $T8 %] + [% 'No' | $T8 %] + [% 'Yes' | $T8 %] +
diff --git a/templates/webpages/is/form_header.html b/templates/webpages/is/form_header.html index 059541339..919f37b66 100644 --- a/templates/webpages/is/form_header.html +++ b/templates/webpages/is/form_header.html @@ -12,8 +12,6 @@
-

[% saved_message %]

- [%- FOREACH key = HIDDENS %] [%- END %] @@ -26,6 +24,8 @@

[% title %]

+

[% saved_message %]

+
diff --git a/xslt/style1.css b/xslt/style1.css index 182fb6529..cddc7ba37 100644 --- a/xslt/style1.css +++ b/xslt/style1.css @@ -1,16 +1,8 @@ +/* toolbar style */ toolbar{ -moz-appearance:none !important; background: url('../image/fade.png'); border-bottom:1px solid black; - border-top:1px solid black -} -splitter{ - -moz-appearance:none !important; - background:white url('../image/fade.png') no-repeat !important; - border:0px -} -iframe{ - border-left:1px solid black !important } /* sidebar styles */ @@ -20,6 +12,7 @@ tree{ padding-top:2px; background: white url('../image/fade.png') repeat-x; } + #sidebar{ background-image: url('../image/fade.png'); max-width:450px; @@ -35,33 +28,30 @@ menubar{ background: url('../image/bg_titel.gif'); border:0px } + menu, menuitem{ font:12px Arial; } -menu menuitem, -menu menu{ - padding:2px -} -menubar menu, -menubar menuitem{ + +menubar menu{ -moz-appearance: none !important; - color:white + color:white; + background: url('../image/bg_titel.gif'); } -menubar menu:hover, -menubar menuitem:hover{ + +menubar menu:hover{ -moz-appearance:none !important; - background:lightblue; - color:red -} -menu menu, -menu menuitem{ - -moz-appearance: none !important; - color:black + background:#4466cc; + color:yellow; } -menu menu:hover, -menu menuitem:hover{ + +/* are splitter & iframe in use currently? */ +splitter{ -moz-appearance:none !important; - background:lightgrey; - color:red + background:white url('../image/fade.png') no-repeat !important; + border:0px; +} +iframe{ + border-left:1px solid black !important; } diff --git a/xslt/xulmenu.xsl b/xslt/xulmenu.xsl index c4b5dde9d..0263d042e 100644 --- a/xslt/xulmenu.xsl +++ b/xslt/xulmenu.xsl @@ -253,16 +253,17 @@ document.getElementById("main_window").contentWindow.history.forward() - - - - - - - - + + + + + + @@ -272,10 +273,8 @@ document.getElementById("main_window").contentWindow.history.forward() - - - + +