X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/828152603e15160cca294ffc941ab0f9307d1def..66b2b0ed46e488b3efc4c5e48cd4a1f9c4837952:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index 2d232a24b..095f22743 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -649,7 +649,7 @@ sub _post_payment { # Get the AP accno. $query = - qq|SELECT c.accno + qq|SELECT c.id FROM acc_trans at LEFT JOIN chart c ON (at.chart_id = c.id) WHERE (trans_id = ?) @@ -657,7 +657,7 @@ sub _post_payment { ORDER BY at.acc_trans_id LIMIT 1|; - ($form->{APselected}) = selectfirst_array_query($form, $dbh, $query, conv_i($form->{id})); + ($form->{AP_chart_id}) = selectfirst_array_query($form, $dbh, $query, conv_i($form->{id})); # Post the new payments. $self->post_transaction($myconfig, $form, $dbh, 1);