$query = qq|SELECT closedto, revtrans FROM defaults|;
($form->{closedto}, $form->{revtrans}) = selectrow_query($form, $dbh, $query);
+ $query = qq|SELECT id, gldate
+ FROM gl
+ WHERE id = (SELECT max(id) FROM gl)|;
+ ($form->{previous_id}, $form->{previous_gldate}) = selectrow_query($form, $dbh, $query);
+
if ($form->{id}) {
$query =
qq|SELECT g.reference, g.description, g.notes, g.transdate, g.storno, g.storno_id,
qq|<td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value="$form->{transdate}" $readonly onBlur=\"check_right_date_format(this)\"></td>|;
}
+ $form->{previous_id} ||= "--";
+ $form->{previous_gldate} ||= "--";
+
$form->header;
print qq|
<form method=post name="gl" action=$form->{script}>
|;
- $form->hide_form(qw(id closedto locked storno storno_id));
+ $form->hide_form(qw(id closedto locked storno storno_id previous_id previous_gldate));
print qq|
<input type=hidden name=title value="$title">
<tr>
<td>
<table width=100%>
+ <tr>
+ <td colspan="6" align="left">|
+ . $locale->text("Previous transnumber text")
+ . " $form->{previous_id} "
+ . $locale->text("Previous transdate text")
+ . " $form->{previous_gldate}"
+ . qq|</td>
+ </tr>
<tr>
<th align=right>| . $locale->text('Reference') . qq|</th>
<td><input name=reference size=20 value="$form->{reference}" $readonly></td>
'Preisklasse' => 'Preisgruppe',
'Prepayment' => 'Vorauszahlung',
'Preview' => 'Druckvorschau',
+ 'Previous transdate text' => 'wurde gespeichert am',
+ 'Previous transnumber text' => 'Letzte Buchung mit der Buchungsnummer',
'Price' => 'Preis',
'Pricegroup' => 'Preisgruppe',
'Pricegroup deleted!' => 'Preisgruppe gelöscht!',
'Please enter values' => 'Bitte Werte eingeben',
'Post' => 'Buchen',
'Post as new' => 'Neu buchen',
+ 'Previous transdate text' => 'wurde gespeichert am',
+ 'Previous transnumber text' => 'Letzte Buchung mit der Buchungsnummer',
'Proforma Invoice' => 'Proformarechnung',
'Project Number' => 'Projektnummer',
'Project Numbers' => 'Projektnummern',