Revision a0f6a00c
Von Thomas Kasulke vor mehr als 17 Jahren hinzugefügt
bin/mozilla/ar.pl | ||
---|---|---|
79 | 79 |
|
80 | 80 |
# saving the history |
81 | 81 |
if(!exists $form->{addition} && ($form->{id} ne "")) { |
82 |
$form->{snumber} = qq|invnumber_| . $form->{invnumber}; |
|
82 | 83 |
$form->{addition} = "ADDED"; |
83 | 84 |
$form->save_history($form->dbconnect(\%myconfig)); |
84 | 85 |
} |
... | ... | |
1092 | 1093 |
if (AR->post_transaction(\%myconfig, \%$form)) { |
1093 | 1094 |
# saving the history |
1094 | 1095 |
if(!exists $form->{addition} && $form->{id} ne "") { |
1096 |
$form->{snumber} = qq|invnumber_| . $form->{invnumber}; |
|
1095 | 1097 |
$form->{addition} = "POSTED"; |
1096 | 1098 |
$form->save_history($form->dbconnect(\%myconfig)); |
1097 | 1099 |
} |
... | ... | |
1110 | 1112 |
$form->{postasnew} = 1; |
1111 | 1113 |
# saving the history |
1112 | 1114 |
if(!exists $form->{addition} && $form->{id} ne "") { |
1115 |
$form->{snumber} = qq|invnumber_| . $form->{invnumber}; |
|
1113 | 1116 |
$form->{addition} = "POSTED AS NEW"; |
1114 | 1117 |
$form->save_history($form->dbconnect(\%myconfig)); |
1115 | 1118 |
} |
... | ... | |
1174 | 1177 |
if (AR->delete_transaction(\%myconfig, \%$form, $spool)) { |
1175 | 1178 |
# saving the history |
1176 | 1179 |
if(!exists $form->{addition}) { |
1180 |
$form->{snumber} = qq|invnumber_| . $form->{invnumber}; |
|
1177 | 1181 |
$form->{addition} = "DELETED"; |
1178 | 1182 |
$form->save_history($form->dbconnect(\%myconfig)); |
1179 | 1183 |
} |
Auch abrufbar als: Unified diff
history_search auf Buchungsnummern etcpp angepasst, so dass man auch gelöschte Daten in der Historie suchen kann.
Anpassungen innerhalb der Variablenübergabe:
$form->{snumbers} muß beim speichern der history gesetzt werden (z.B. $form->{snumbers} = qq|invnumber_| . $form->{invnumber}; )