X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/60de0703a74f40f6b49ba7f47fc2b5e54937e5d3..98c23539610c6d083265454858ef25e563f74b21:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index 08dd54224..bbddd6e8c 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -811,6 +811,8 @@ sub storno { $query = qq|UPDATE ap SET paid = amount + paid, storno = 't' WHERE id = ?|; do_query($form, $dbh, $query, $id); + $form->new_lastmtime('ap') if $id == $form->{id}; + # now copy acc_trans entries $query = qq|SELECT a.*, c.link FROM acc_trans a LEFT JOIN chart c ON a.chart_id = c.id WHERE a.trans_id = ? ORDER BY a.acc_trans_id|; my $rowref = selectall_hashref_query($form, $dbh, $query, $id);