Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e2cf9103

Von Stephan Köhler vor mehr als 18 Jahren hinzugefügt

  • ID e2cf91039d3348cb733e66d04734926c2c9da209
  • Vorgänger e5aaed2c
  • Nachfolger 682a0743

Behebt/umgeht Bug 323. SQL-Fehler bei Kontenabgeleich, wenn Datum ausgewaehlt wurde.
Anzeige des Datums im Bericht als Ziffern (Routine date(...) gibt den Monat nicht
in der deutschen Sprache zurueck)

Unterschiede anzeigen:

SL/RC.pm
73 73
  if ($form->{fromdate}) {
74 74
    $query = qq|SELECT sum(a.amount),
75 75
                     (SELECT DISTINCT c2.category FROM chart c2
76
                      WHERE c2accno = '$form->{accno}') AS category
76
                      WHERE c2.accno = '$form->{accno}') AS category
77 77
		FROM acc_trans a
78 78
		JOIN chart c ON (c.id = a.chart_id)
79 79
		WHERE a.transdate < date '$form->{fromdate}'
bin/mozilla/rc.pl
147 147
    $option .= "\n<br>" if ($option);
148 148
    $option .=
149 149
        $locale->text('From') . "&nbsp;"
150
      . $locale->date(\%myconfig, $form->{fromdate}, 1);
150
      . $locale->date(\%myconfig, $form->{fromdate}, 0);
151 151
  }
152 152
  if ($form->{todate}) {
153 153
    $option .= "\n<br>" if ($option);
154 154
    $option .=
155
        $locale->text('To') . "&nbsp;"
156
      . $locale->date(\%myconfig, $form->{todate}, 1);
155
        $locale->text('Bis') . "&nbsp;"
156
      . $locale->date(\%myconfig, $form->{todate}, 0);
157 157
  }
158 158

  
159 159
  $form->{title} = "$form->{accno}--$form->{account}";

Auch abrufbar als: Unified diff