Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 78650e30

Von Moritz Bunkus vor fast 18 Jahren hinzugefügt

  • ID 78650e309d0101ce7ec8ba60315ed5cc5fa42339
  • Vorgänger d6431367
  • Nachfolger 3c40c914

In den Einkaufs- und Verkaufsmasken eine Checkbox "Details anzeigen" eingefügt, mit der die jeweils zweite Positionszeile angezeigt bzw. versteckt werden kann.

Unterschiede anzeigen:

bin/mozilla/io.pl
90 90
sub display_row {
91 91
  $lxdebug->enter_sub();
92 92
  my $numrows = shift;
93

  
93 94
  if ($lizenzen && $form->{vc} eq "customer") {
94 95
    if ($form->{type} =~ /sales_order/) {
95 96
      @column_index = (runningnumber, partnumber, description, ship, qty);
......
197 198
    . qq|</th>|;
198 199
############## ENDE Neueintrag ##################
199 200

  
201
  $form->{"show_details"} =
202
    !defined($form->{"show_details"}) ? 1 :
203
    $form->{"show_details"} ? 1 : 0;
204
  my $show_details_new = 1 - $form->{"show_details"};
205
  my $show_details_checked = $form->{"show_details"} ? "checked" : "";
206

  
200 207
  print qq|
201 208
  <tr>
202 209
    <td>
210
      <input type="hidden" name="show_details" value="$form->{show_details}">
211
      <input type="checkbox" onclick="show_form_details($show_details_new);" $show_details_checked>
212
      | . $locale->text("Show details") . qq|<br>
203 213
      <table width=100%>
204 214
	<tr class=listheading>|;
205 215

  
......
438 448
    # Eintrag fuer Version 2.2.0 geaendert #
439 449
    # neue Optik im Rechnungsformular      #
440 450
########################################
451

  
452
    my $row_style_attr =
453
      'style="display:none;"' if (!$form->{"show_details"});
454

  
441 455
    # print second row
442 456
    print qq|
443
        <tr  class=listrow$j>
457
        <tr  class=listrow$j $row_style_attr>
444 458
	  <td colspan=$colspan>
445 459
|;
446 460
    if ($lizenzen && $form->{type} eq "invoice" && $form->{vc} eq "customer") {
bin/mozilla/is.pl
582 582
    $onload = qq|alert('$credittext')|;
583 583
  }
584 584

  
585
  $form->{"javascript"} .= qq|<script type="text/javascript" src="js/show_form_details.js">|;
586

  
585 587
  $form->header;
586 588

  
587 589
  print qq|
......
1086 1088

  
1087 1089
  if ($form->{id}) {
1088 1090
    print qq|
1089
    <input class=submit type=submit accesskey="u" name=action value="|
1091
    <input class=submit type=submit accesskey="u" name=action id=update_button value="|
1090 1092
      . $locale->text('Update') . qq|">
1091 1093
    <input class=submit type=submit name=action value="|
1092 1094
      . $locale->text('Ship to') . qq|">
......
1125 1127

  
1126 1128
  } else {
1127 1129
    if ($invdate > $closedto) {
1128
      print qq|<input class=submit type=submit name=action value="|
1130
      print qq|<input class=submit type=submit name=action id=update_button value="|
1129 1131
        . $locale->text('Update') . qq|">
1130 1132
      <input class=submit type=submit name=action value="|
1131 1133
        . $locale->text('Ship to') . qq|">
bin/mozilla/oe.pl
700 700
    $onload = qq|alert('$credittext')|;
701 701
  }
702 702

  
703
  $form->{"javascript"} .= qq|<script type="text/javascript" src="js/show_form_details.js">|;
704

  
703 705
  $form->header;
704 706

  
705 707
  print qq|
......
1030 1032
</table>
1031 1033

  
1032 1034
| . $locale->text("Edit the $form->{type}") . qq|<br>
1033
<input class=submit type=submit name=action value="|
1035
<input class=submit type=submit name=action id=update_button value="|
1034 1036
    . $locale->text('Update') . qq|">
1035 1037
<input class=submit type=submit name=action value="|
1036 1038
    . $locale->text('Ship to') . qq|">
js/show_form_details.js
1
function show_form_details(new_value) {
2
  document.forms[0].show_details.value = new_value;
3
  document.getElementById("update_button").click();
4
}
locale/de/all
353 353
  'Dunnings'                    => 'Mahnungen',
354 354
  'E-mail'                      => 'eMail',
355 355
  'E-mail Statement to'         => 'F?lligkeitsabrechnung als eMail an',
356
  'E-mail address missing!'     => 'eMailadresse fehlt!',
356
  'E-mail address missing!'     => '',
357 357
  'E-mailed'                    => 'eMail gesendet.',
358 358
  'ELSTER Export (Taxbird)'     => 'ELSTER-Export nach Taxbird',
359 359
  'ELSTER Export (Winston)'     => 'ELSTER Export nach Winston',
......
887 887
  'Shopartikel'                 => 'Shopartikel',
888 888
  'Short'                       => 'kurz',
889 889
  'Show'                        => 'Zeigen',
890
  'Show details'                => 'Details anzeigen',
890 891
  'Show old dunnings'           => 'Alte Mahnungen anzeigen',
891 892
  'Signature'                   => 'Unterschrift',
892 893
  'Skonto'                      => 'Skonto',
locale/de/cn
57 57
  'Discount'                    => 'Rabatt',
58 58
  'Due Date'                    => 'F?lligkeitsdatum',
59 59
  'E-mail'                      => 'eMail',
60
  'E-mail address missing!'     => 'eMailadresse fehlt!',
60
  'E-mail address missing!'     => 'E-mail address missing!',
61 61
  'E-mailed'                    => 'eMail gesendet.',
62 62
  'Edit Credit Note'            => 'Gutschrift bearbeiten',
63 63
  'Enter longdescription'       => 'Langtext eingeben',
......
173 173
  'Ship via'                    => 'Transportmittel',
174 174
  'Shipping Address'            => 'Lieferadresse',
175 175
  'Shipping Point'              => 'Versandort',
176
  'Show details'                => 'Details anzeigen',
176 177
  'Source'                      => 'Beleg',
177 178
  'Storno Invoice'              => 'Stornorechnung',
178 179
  'Storno Packing List'         => 'Stornolieferschein',
locale/de/dn
52 52
gestartet',
53 53
  'Dunning overview'            => 'Mahnungs?bersicht',
54 54
  'E-mail'                      => 'eMail',
55
  'E-mail address missing!'     => 'eMailadresse fehlt!',
55
  'E-mail address missing!'     => 'E-mail address missing!',
56 56
  'E-mailed'                    => 'eMail gesendet.',
57 57
  'Edit Dunning Process Config' => 'Mahnwesenkonfiguration bearbeiten',
58 58
  'Enter longdescription'       => 'Langtext eingeben',
......
164 164
  'Ship'                        => 'Lagerausgang',
165 165
  'Ship to'                     => 'Lieferadresse',
166 166
  'Shipping Address'            => 'Lieferadresse',
167
  'Show details'                => 'Details anzeigen',
167 168
  'Show old dunnings'           => 'Alte Mahnungen anzeigen',
168 169
  'Start Dunning Process'       => 'Mahnprozess starten',
169 170
  'Storno Invoice'              => 'Stornorechnung',
locale/de/ic
54 54
  'Discount'                    => 'Rabatt',
55 55
  'Drawing'                     => 'Zeichnung',
56 56
  'E-mail'                      => 'eMail',
57
  'E-mail address missing!'     => 'eMailadresse fehlt!',
57
  'E-mail address missing!'     => 'E-mail address missing!',
58 58
  'E-mailed'                    => 'eMail gesendet.',
59 59
  'Edit '                       => 'Bearbeiten',
60 60
  'Edit Assembly'               => 'Erzeugnis bearbeiten',
......
198 198
  'Shipping Address'            => 'Lieferadresse',
199 199
  'Shopartikel'                 => 'Shopartikel',
200 200
  'Short'                       => 'kurz',
201
  'Show details'                => 'Details anzeigen',
201 202
  'Sold'                        => 'Verkauft',
202 203
  'Stock'                       => 'einlagern',
203 204
  'Stock Assembly'              => 'Erzeugnis einlagern',
locale/de/io
31 31
  'Department'                  => 'Abteilung',
32 32
  'Discount'                    => 'Rabatt',
33 33
  'E-mail'                      => 'eMail',
34
  'E-mail address missing!'     => 'eMailadresse fehlt!',
34
  'E-mail address missing!'     => 'E-mail address missing!',
35 35
  'E-mailed'                    => 'eMail gesendet.',
36 36
  'Enter longdescription'       => 'Langtext eingeben',
37 37
  'Extended'                    => 'Gesamt',
......
119 119
  'Ship'                        => 'Lagerausgang',
120 120
  'Ship to'                     => 'Lieferadresse',
121 121
  'Shipping Address'            => 'Lieferadresse',
122
  'Show details'                => 'Details anzeigen',
122 123
  'Storno Invoice'              => 'Stornorechnung',
123 124
  'Storno Packing List'         => 'Stornolieferschein',
124 125
  'Street'                      => 'Stra?e',
locale/de/ir
52 52
  'Discount'                    => 'Rabatt',
53 53
  'Due Date'                    => 'F?lligkeitsdatum',
54 54
  'E-mail'                      => 'eMail',
55
  'E-mail address missing!'     => 'eMailadresse fehlt!',
55
  'E-mail address missing!'     => 'E-mail address missing!',
56 56
  'E-mailed'                    => 'eMail gesendet.',
57 57
  'Edit Vendor Invoice'         => 'Einkaufsrechnung bearbeiten',
58 58
  'Enter longdescription'       => 'Langtext eingeben',
......
161 161
  'Ship'                        => 'Lagerausgang',
162 162
  'Ship to'                     => 'Lieferadresse',
163 163
  'Shipping Address'            => 'Lieferadresse',
164
  'Show details'                => 'Details anzeigen',
164 165
  'Source'                      => 'Beleg',
165 166
  'Steuersatz'                  => 'Steuersatz',
166 167
  'Storno'                      => 'Storno',
locale/de/is
64 64
  'Due Date'                    => 'F?lligkeitsdatum',
65 65
  'Dunning Amount'              => 'gemahnter Betrag',
66 66
  'E-mail'                      => 'eMail',
67
  'E-mail address missing!'     => 'eMailadresse fehlt!',
67
  'E-mail address missing!'     => 'E-mail address missing!',
68 68
  'E-mailed'                    => 'eMail gesendet.',
69 69
  'Edit Credit Note'            => 'Gutschrift bearbeiten',
70 70
  'Edit Sales Invoice'          => 'Rechnung bearbeiten',
......
187 187
  'Ship via'                    => 'Transportmittel',
188 188
  'Shipping Address'            => 'Lieferadresse',
189 189
  'Shipping Point'              => 'Versandort',
190
  'Show details'                => 'Details anzeigen',
190 191
  'Source'                      => 'Beleg',
191 192
  'Steuersatz'                  => 'Steuersatz',
192 193
  'Storno'                      => 'Storno',
locale/de/oe
70 70
  'Done'                        => 'Fertig',
71 71
  'Dunning Amount'              => 'gemahnter Betrag',
72 72
  'E-mail'                      => 'eMail',
73
  'E-mail address missing!'     => 'eMailadresse fehlt!',
73
  'E-mail address missing!'     => 'E-mail address missing!',
74 74
  'E-mailed'                    => 'eMail gesendet.',
75 75
  'Edit Purchase Order'         => 'Lieferantenaufrag bearbeiten',
76 76
  'Edit Quotation'              => 'Angebot bearbeiten',
......
212 212
  'Shipping Date'               => 'Lieferdatum',
213 213
  'Shipping Date missing!'      => 'Lieferdatum fehlt.',
214 214
  'Shipping Point'              => 'Versandort',
215
  'Show details'                => 'Details anzeigen',
215 216
  'Steuersatz'                  => 'Steuersatz',
216 217
  'Storno Invoice'              => 'Stornorechnung',
217 218
  'Storno Packing List'         => 'Stornolieferschein',

Auch abrufbar als: Unified diff