Revision d735aab3
Von Martin Helmling mh@waldpark.octosoft.eu vor etwa 9 Jahren hinzugefügt
SL/IR.pm | ||
---|---|---|
984 | 984 |
$query = qq|SELECT cp_id, invnumber, transdate AS invdate, duedate, |
985 | 985 |
orddate, quodate, globalproject_id, |
986 | 986 |
ordnumber, quonumber, paid, taxincluded, notes, taxzone_id, storno, gldate, |
987 |
mtime, itime, |
|
987 | 988 |
intnotes, (SELECT cu.name FROM currencies cu WHERE cu.id=ap.currency_id) AS currency, direct_debit, |
988 | 989 |
delivery_term_id |
989 | 990 |
FROM ap |
990 | 991 |
WHERE id = ?|; |
991 | 992 |
$ref = selectfirst_hashref_query($form, $dbh, $query, conv_i($form->{id})); |
992 | 993 |
map { $form->{$_} = $ref->{$_} } keys %$ref; |
994 |
$form->{mtime} = $form->{itime} if !$form->{mtime}; |
|
995 |
$form->{lastmtime} = $form->{mtime}; |
|
993 | 996 |
|
994 | 997 |
$form->{exchangerate} = $form->get_exchangerate($dbh, $form->{currency}, $form->{invdate}, "sell"); |
995 | 998 |
|
Auch abrufbar als: Unified diff
Prüfen beim Speichern, ob Dokument geändert wurde.
Allgemeine Funktion in Forms zum Lesen und Vergleichen der mtime
überall Form variable lastmtime da mtime mehrfach auftaucht
Conflicts:
templates/webpages/ar/form_header.html
templates/webpages/do/form_header.html