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);
. qq|</th>|;
############## 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|
<tr>
<td>
+ <input type="hidden" name="show_details" value="$form->{show_details}">
+ <input type="checkbox" onclick="show_form_details($show_details_new);" $show_details_checked>
+ | . $locale->text("Show details") . qq|<br>
<table width=100%>
<tr class=listheading>|;
# 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|
- <tr class=listrow$j>
+ <tr class=listrow$j $row_style_attr>
<td colspan=$colspan>
|;
if ($lizenzen && $form->{type} eq "invoice" && $form->{vc} eq "customer") {
$onload = qq|alert('$credittext')|;
}
+ $form->{"javascript"} .= qq|<script type="text/javascript" src="js/show_form_details.js">|;
+
$form->header;
print qq|
if ($form->{id}) {
print qq|
- <input class=submit type=submit accesskey="u" name=action value="|
+ <input class=submit type=submit accesskey="u" name=action id=update_button value="|
. $locale->text('Update') . qq|">
<input class=submit type=submit name=action value="|
. $locale->text('Ship to') . qq|">
} else {
if ($invdate > $closedto) {
- print qq|<input class=submit type=submit name=action value="|
+ print qq|<input class=submit type=submit name=action id=update_button value="|
. $locale->text('Update') . qq|">
<input class=submit type=submit name=action value="|
. $locale->text('Ship to') . qq|">
$onload = qq|alert('$credittext')|;
}
+ $form->{"javascript"} .= qq|<script type="text/javascript" src="js/show_form_details.js">|;
+
$form->header;
print qq|
</table>
| . $locale->text("Edit the $form->{type}") . qq|<br>
-<input class=submit type=submit name=action value="|
+<input class=submit type=submit name=action id=update_button value="|
. $locale->text('Update') . qq|">
<input class=submit type=submit name=action value="|
. $locale->text('Ship to') . qq|">
--- /dev/null
+function show_form_details(new_value) {
+ document.forms[0].show_details.value = new_value;
+ document.getElementById("update_button").click();
+}
'Dunnings' => 'Mahnungen',
'E-mail' => 'eMail',
'E-mail Statement to' => 'Fälligkeitsabrechnung als eMail an',
- 'E-mail address missing!' => 'eMailadresse fehlt!',
+ 'E-mail address missing!' => '',
'E-mailed' => 'eMail gesendet.',
'ELSTER Export (Taxbird)' => 'ELSTER-Export nach Taxbird',
'ELSTER Export (Winston)' => 'ELSTER Export nach Winston',
'Shopartikel' => 'Shopartikel',
'Short' => 'kurz',
'Show' => 'Zeigen',
+ 'Show details' => 'Details anzeigen',
'Show old dunnings' => 'Alte Mahnungen anzeigen',
'Signature' => 'Unterschrift',
'Skonto' => 'Skonto',
'Discount' => 'Rabatt',
'Due Date' => 'Fälligkeitsdatum',
'E-mail' => 'eMail',
- 'E-mail address missing!' => 'eMailadresse fehlt!',
+ 'E-mail address missing!' => 'E-mail address missing!',
'E-mailed' => 'eMail gesendet.',
'Edit Credit Note' => 'Gutschrift bearbeiten',
'Enter longdescription' => 'Langtext eingeben',
'Ship via' => 'Transportmittel',
'Shipping Address' => 'Lieferadresse',
'Shipping Point' => 'Versandort',
+ 'Show details' => 'Details anzeigen',
'Source' => 'Beleg',
'Storno Invoice' => 'Stornorechnung',
'Storno Packing List' => 'Stornolieferschein',
gestartet',
'Dunning overview' => 'Mahnungsübersicht',
'E-mail' => 'eMail',
- 'E-mail address missing!' => 'eMailadresse fehlt!',
+ 'E-mail address missing!' => 'E-mail address missing!',
'E-mailed' => 'eMail gesendet.',
'Edit Dunning Process Config' => 'Mahnwesenkonfiguration bearbeiten',
'Enter longdescription' => 'Langtext eingeben',
'Ship' => 'Lagerausgang',
'Ship to' => 'Lieferadresse',
'Shipping Address' => 'Lieferadresse',
+ 'Show details' => 'Details anzeigen',
'Show old dunnings' => 'Alte Mahnungen anzeigen',
'Start Dunning Process' => 'Mahnprozess starten',
'Storno Invoice' => 'Stornorechnung',
'Discount' => 'Rabatt',
'Drawing' => 'Zeichnung',
'E-mail' => 'eMail',
- 'E-mail address missing!' => 'eMailadresse fehlt!',
+ 'E-mail address missing!' => 'E-mail address missing!',
'E-mailed' => 'eMail gesendet.',
'Edit ' => 'Bearbeiten',
'Edit Assembly' => 'Erzeugnis bearbeiten',
'Shipping Address' => 'Lieferadresse',
'Shopartikel' => 'Shopartikel',
'Short' => 'kurz',
+ 'Show details' => 'Details anzeigen',
'Sold' => 'Verkauft',
'Stock' => 'einlagern',
'Stock Assembly' => 'Erzeugnis einlagern',
'Department' => 'Abteilung',
'Discount' => 'Rabatt',
'E-mail' => 'eMail',
- 'E-mail address missing!' => 'eMailadresse fehlt!',
+ 'E-mail address missing!' => 'E-mail address missing!',
'E-mailed' => 'eMail gesendet.',
'Enter longdescription' => 'Langtext eingeben',
'Extended' => 'Gesamt',
'Ship' => 'Lagerausgang',
'Ship to' => 'Lieferadresse',
'Shipping Address' => 'Lieferadresse',
+ 'Show details' => 'Details anzeigen',
'Storno Invoice' => 'Stornorechnung',
'Storno Packing List' => 'Stornolieferschein',
'Street' => 'Straße',
'Discount' => 'Rabatt',
'Due Date' => 'Fälligkeitsdatum',
'E-mail' => 'eMail',
- 'E-mail address missing!' => 'eMailadresse fehlt!',
+ 'E-mail address missing!' => 'E-mail address missing!',
'E-mailed' => 'eMail gesendet.',
'Edit Vendor Invoice' => 'Einkaufsrechnung bearbeiten',
'Enter longdescription' => 'Langtext eingeben',
'Ship' => 'Lagerausgang',
'Ship to' => 'Lieferadresse',
'Shipping Address' => 'Lieferadresse',
+ 'Show details' => 'Details anzeigen',
'Source' => 'Beleg',
'Steuersatz' => 'Steuersatz',
'Storno' => 'Storno',
'Due Date' => 'Fälligkeitsdatum',
'Dunning Amount' => 'gemahnter Betrag',
'E-mail' => 'eMail',
- 'E-mail address missing!' => 'eMailadresse fehlt!',
+ 'E-mail address missing!' => 'E-mail address missing!',
'E-mailed' => 'eMail gesendet.',
'Edit Credit Note' => 'Gutschrift bearbeiten',
'Edit Sales Invoice' => 'Rechnung bearbeiten',
'Ship via' => 'Transportmittel',
'Shipping Address' => 'Lieferadresse',
'Shipping Point' => 'Versandort',
+ 'Show details' => 'Details anzeigen',
'Source' => 'Beleg',
'Steuersatz' => 'Steuersatz',
'Storno' => 'Storno',
'Done' => 'Fertig',
'Dunning Amount' => 'gemahnter Betrag',
'E-mail' => 'eMail',
- 'E-mail address missing!' => 'eMailadresse fehlt!',
+ 'E-mail address missing!' => 'E-mail address missing!',
'E-mailed' => 'eMail gesendet.',
'Edit Purchase Order' => 'Lieferantenaufrag bearbeiten',
'Edit Quotation' => 'Angebot bearbeiten',
'Shipping Date' => 'Lieferdatum',
'Shipping Date missing!' => 'Lieferdatum fehlt.',
'Shipping Point' => 'Versandort',
+ 'Show details' => 'Details anzeigen',
'Steuersatz' => 'Steuersatz',
'Storno Invoice' => 'Stornorechnung',
'Storno Packing List' => 'Stornolieferschein',