Revision 60de0703
Von Martin Helmling mh@waldpark.octosoft.eu vor fast 9 Jahren hinzugefügt
SL/AR.pm | ||
---|---|---|
772 | 772 |
$query = qq|UPDATE ar SET paid = amount + paid, storno = 't' WHERE id = ?|; |
773 | 773 |
do_query($form, $dbh, $query, $id); |
774 | 774 |
|
775 |
$form->new_lastmtime('ar') if $id == $form->{id}; |
|
776 |
|
|
777 | 775 |
# now copy acc_trans entries |
778 | 776 |
$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|; |
779 | 777 |
my $rowref = selectall_hashref_query($form, $dbh, $query, $id); |
... | ... | |
793 | 791 |
|
794 | 792 |
map { IO->set_datepaid(table => 'ar', id => $_, dbh => $dbh) } ($id, $new_id); |
795 | 793 |
|
796 |
$form->new_lastmtime('ar') if $storno_id == $form->{id}; |
|
797 |
|
|
798 | 794 |
$dbh->commit; |
799 | 795 |
|
800 | 796 |
$main::lxdebug->leave_sub(); |
Auch abrufbar als: Unified diff
4. Überarbeitung Prüfen beim Speichern, ob Dokument geändert ist(2)
fixup: Zu viel des Guten (patch hat falsch einsortiert)