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 )
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();
$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));
$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));
<table width=100%>
<tr>
<th class=listtop>$form->{title}</th>
- </tr>
+ </tr>| .
+
+ ($form->{saved_message} ? qq|
+ <tr>
+ <td>$form->{saved_message}</th>
+ </tr>| : '') .
+
+qq|
<tr height="5"></tr>
<tr>
<td>
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;
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;
&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;
}
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
<tr>
- <td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> [<a href="JavaScript:top.main_window.print()">| . $locale->text('drucken') . qq|</a>]</td>
+ <td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;">
+ [<a href="JavaScript:top.main_window.print();" title="| . $locale->text('Hardcopy') . qq|">| . $locale->text('Print') . qq|</a>]
+ [<a HREF="login.pl" target="_blank" "title="| . $locale->text('Open a further Lx-Office Window or Tab') . qq|">| . $locale->text('New Win/Tab') . qq|</a>]
+ [<a href="Javascript:top.main_window.history.back();" title="| . $locale->text('Go one step back') . qq|">| . $locale->text('Back') . qq|</a>]
+ <!-- is there a better solution for Back? Possibly with the callback variable? -->
+ </td>
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>|
. $login . $datum . qq| <script>writeclock()</script>
</td>
'gruppen_bearbeiten' => 'edit_groups',
'system_sperren' => 'lock_system',
'anmeldung' => 'login',
- 'abmeldung' => 'logout',
+ 'abmelden' => 'logout',
'neue_ware' => 'new_part',
'nein' => 'no',
'datenbankadministration' => 'pg_database_administration',
'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',
'Groups' => 'Warengruppen',
'HTML' => 'HTML',
'HTML Templates' => 'HTML-Vorlagen',
+ 'Hardcopy' => 'Seite drucken',
'Has serial number' => 'Hat eine Serienummer',
'Header' => 'Überschrift',
'Heading' => 'Überschrift',
'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.',
'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',
'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',
'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',
'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.',
'disposed' => 'Entsorgung',
'done' => 'erledigt',
'down' => 'runter',
- 'drucken' => 'drucken',
'dunning_list' => 'mahnungsliste',
'eMail Send?' => 'eMail-Versand?',
'eMail?' => 'eMail?',
'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]',
'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]',
'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',
'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]',
'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]',
#!/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} = {
'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',
'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',
'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',
</select>
</td>
</tr>
+ <tr>
+ <th align='right'>[% 'Mandatory Departments' | $T8 %]</th>
+ <td>
+ <input type='radio' name='mandatory_departments' value='0' [% IF !myc_mandatory_departments %] checked[% END %]> [% 'No' | $T8 %]
+ <input type='radio' name='mandatory_departments' value='1' [% IF myc_mandatory_departments %] checked[% END %]> [% 'Yes' | $T8 %]
+ </td>
+ </tr>
<input type="hidden" name="templates" value="[% HTML.escape(myc_templates) %]">
</table>
<form method="post" name="invoice" action="[% script %]">
-<p>[% saved_message %]</p>
-
[%- FOREACH key = HIDDENS %]
<input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key) %]">
[%- END %]
<p><div class="listtop" width="100%">[% title %]</div></p>
+<p>[% saved_message %]</p>
+
<table width="100%">
<tr>
<td valign="top">
+/* 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 */
padding-top:2px;
background: white url('../image/fade.png') repeat-x;
}
+
#sidebar{
background-image: url('../image/fade.png');
max-width:450px;
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;
}
<!-- *************************************************************************** -->
<!-- special buttons ( logout , print, open new window )
+The tooltips, like tooltiptext="Neues Fenster", do not appear in my Firefox/Prism browsers. Why?
+https://developer.mozilla.org/en/XUL_Tutorial/Popup_Menus
+https://developer.mozilla.org/en/XUL/Attribute/tooltiptext
**************************************************************************** -->
<xsl:template name="specialbuttons">
- <toolbarbutton image="image/icons/24x24/Batch Printing.png" tooltiptext="hallo" oncommand="PrintW(event)"/>
- <toolbarbutton image="image/icons/24x24/Neues Fenster.png" tooltip="Neues Fenster" link="menuXML.pl?action=display" target="_top" oncommand="openLinkNewWindow(event)"/>
- <toolbarbutton label="Logout" link="{/*//item[@id='Programm--Logout']/@link}" target="_top" oncommand="openLink(event)">
- <image src="image/icons/24x24/Programm--Logout.png" width="24" height="24" />
- </toolbarbutton>
-<toolbarseparator/>
- <toolbarbutton label="back" tooltiptext="hallo" oncommand="MyGoBack()"/>
- <toolbarbutton label="forward" tooltip="Neues Fenster" oncommand="MyGoForward()"/>
+ <toolbarbutton image="image/icons/24x24/Batch Printing.png" oncommand="PrintW(event)" tooltiptext="Drucken"/>
+ <toolbarbutton image="image/icons/24x24/Neues Fenster.png" tooltiptext="Neues Fenster" link="menuXML.pl?action=display" target="_top" oncommand="openLinkNewWindow(event)"/>
+ <toolbarbutton image="image/icons/24x24/Programm--Logout.png" link="{/*//item[@id='Programm--Logout']/@link}" target="_top" oncommand="openLink(event)" tooltiptext="Abmelden"/>
+ <toolbarseparator/>
+ <toolbarbutton image="image/icons/24x24/leftarrow_24.png" tooltiptext="Schritt zurück" oncommand="MyGoBack()"/>
+ <toolbarbutton image="image/icons/24x24/rightarrow_24.png" tooltiptext="Schritt vor" oncommand="MyGoForward()"/>
</xsl:template>
<!-- *************************************************************************** -->
<xsl:template name="searchbox">
<vbox style="padding-top:2px">
<hbox>
-
- <textbox height="22px" style="font-size:12px;margin-right:0px" width="200px" id="searchboxtext" onkeypress="checkEnter(event)"/>
-<toolbarbutton type="toolbar" width="20" height="20" style="padding:5px !important"
-image="image/icons/16x16/CRM--Schnellsuche.png" flex="0" oncommand="doSearch()"/>
+ <textbox style="font-size:11px;margin-right:0px" width="200px" id="searchboxtext" onkeypress="checkEnter(event)"/>
+ <toolbarbutton type="toolbar" width="20" height="20" style="padding:5px !important" image="image/icons/16x16/CRM--Schnellsuche.png" flex="0" oncommand="doSearch()"/>
</hbox>
</vbox>