Revision 60de0703
Von Martin Helmling mh@waldpark.octosoft.eu vor fast 9 Jahren hinzugefügt
SL/AP.pm | ||
---|---|---|
811 | 811 |
$query = qq|UPDATE ap SET paid = amount + paid, storno = 't' WHERE id = ?|; |
812 | 812 |
do_query($form, $dbh, $query, $id); |
813 | 813 |
|
814 |
$form->new_lastmtime('ap') if $id == $form->{id}; |
|
815 |
|
|
816 | 814 |
# now copy acc_trans entries |
817 | 815 |
$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|; |
818 | 816 |
my $rowref = selectall_hashref_query($form, $dbh, $query, $id); |
... | ... | |
832 | 830 |
|
833 | 831 |
map { IO->set_datepaid(table => 'ap', id => $_, dbh => $dbh) } ($id, $new_id); |
834 | 832 |
|
835 |
$form->new_lastmtime('ap') if $storno_id == $form->{id}; |
|
836 |
|
|
837 | 833 |
$dbh->commit; |
838 | 834 |
|
839 | 835 |
$main::lxdebug->leave_sub(); |
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)