projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Loeschen von Drafts flexibler.
[kivitendo-erp.git]
/
bin
/
mozilla
/
pe.pl
diff --git
a/bin/mozilla/pe.pl
b/bin/mozilla/pe.pl
index
d95a7ee
..
18c90c3
100644
(file)
--- a/
bin/mozilla/pe.pl
+++ b/
bin/mozilla/pe.pl
@@
-58,7
+58,9
@@
sub add {
sub edit {
$lxdebug->enter_sub();
sub edit {
$lxdebug->enter_sub();
-
+ # show history button
+ $form->{javascript} = qq|<script type="text/javascript" src="js/show_history.js"></script>|;
+ #/show hhistory button
$form->{title} = "Edit";
if ($form->{type} eq 'project') {
$form->{title} = "Edit";
if ($form->{type} eq 'project') {
@@
-425,6
+427,14
@@
sub form_project_footer {
. $locale->text('Delete') . qq|">|;
}
. $locale->text('Delete') . qq|">|;
}
+# button for saving history
+print qq|
+ <input type=button onclick=set_history_window(|
+ . $form->{id}
+ . qq|); name=history id=history value=|
+ . $locale->text('history')
+ . qq|>|;
+# /button for saving history
print qq|
</form>
print qq|
</form>
@@
-455,6
+465,12
@@
sub save {
PE->save_pricegroup(\%myconfig, \%$form);
$form->redirect($locale->text('Pricegroup saved!'));
}
PE->save_pricegroup(\%myconfig, \%$form);
$form->redirect($locale->text('Pricegroup saved!'));
}
+ # saving the history
+ if(!exists $form->{addition} && $form->{id} ne "") {
+ $form->{addition} = "SAVED";
+ $form->save_history($form->dbconnect(\%myconfig));
+ }
+ # /saving the history
$lxdebug->leave_sub();
}
$lxdebug->leave_sub();
}
@@
-473,7
+489,12
@@
sub delete {
if ($form->{type} eq 'pricegroup') {
$form->redirect($locale->text('Pricegroup deleted!'));
}
if ($form->{type} eq 'pricegroup') {
$form->redirect($locale->text('Pricegroup deleted!'));
}
-
+ # saving the history
+ if(!exists $form->{addition}) {
+ $form->{addition} = "DELETED";
+ $form->save_history($form->dbconnect(\%myconfig));
+ }
+ # /saving the history
$lxdebug->leave_sub();
}
$lxdebug->leave_sub();
}
@@
-653,6
+674,14
@@
sub form_partsgroup_footer {
. $locale->text('Delete') . qq|">|;
}
. $locale->text('Delete') . qq|">|;
}
+# button for saving history
+print qq|
+ <input type=button onclick=set_history_window(|
+ . $form->{id}
+ . qq|); name=history id=history value=|
+ . $locale->text('history')
+ . qq|>|;
+# /button for saving history
print qq|
</form>
print qq|
</form>
@@
-847,6
+876,14
@@
sub form_pricegroup_footer {
. $locale->text('Delete') . qq|">|;
}
. $locale->text('Delete') . qq|">|;
}
+# button for saving history
+print qq|
+ <input type=button onclick=set_history_window(|
+ . $form->{id}
+ . qq|); name=history id=history value=|
+ . $locale->text('history')
+ . qq|>|;
+# /button for saving history
print qq|
</form>
print qq|
</form>