Revision 23ceae1d
Von Jan Büren vor mehr als 4 Jahren hinzugefügt
SL/AP.pm | ||
---|---|---|
893 | 893 |
$storno_row->{netamount} *= -1; |
894 | 894 |
$storno_row->{paid} = $storno_row->{amount}; |
895 | 895 |
|
896 |
delete @$storno_row{qw(itime mtime)}; |
|
896 |
delete @$storno_row{qw(itime mtime gldate)};
|
|
897 | 897 |
|
898 | 898 |
$query = sprintf 'INSERT INTO ap (%s) VALUES (%s)', join(', ', keys %$storno_row), join(', ', map '?', values %$storno_row); |
899 | 899 |
do_query($form, $dbh, $query, (values %$storno_row)); |
... | ... | |
913 | 913 |
} |
914 | 914 |
|
915 | 915 |
for my $row (@$rowref) { |
916 |
delete @$row{qw(itime mtime link acc_trans_id)}; |
|
916 |
delete @$row{qw(itime mtime link acc_trans_id gldate)};
|
|
917 | 917 |
$query = sprintf 'INSERT INTO acc_trans (%s) VALUES (%s)', join(', ', keys %$row), join(', ', map '?', values %$row); |
918 | 918 |
$row->{trans_id} = $new_id; |
919 | 919 |
$row->{amount} *= -1; |
Auch abrufbar als: Unified diff
Kreditorenbeleg-Storno: Buchungsdatum richtig setzen
Aufgefallen durch den Zeitstempel selftest