Zahlungsbedingungen Kreditorenbuchung leere Werte mit conv_i abfangen
authorJan Büren <jan@kivitendo.de>
Fri, 15 Jan 2021 08:18:30 +0000 (09:18 +0100)
committerJan Büren <jan@kivitendo.de>
Fri, 15 Jan 2021 08:22:39 +0000 (09:22 +0100)
SL/AP.pm

index 69a2a0a..9565283 100644 (file)
--- a/SL/AP.pm
+++ b/SL/AP.pm
@@ -152,7 +152,7 @@ sub _post_transaction {
                   conv_i($form->{department_id}), $form->{storno},
                   $form->{storno_id}, conv_i($form->{globalproject_id}),
                   $form->{direct_debit} ? 't' : 'f',
-                  $form->{payment_id},
+                  conv_i($form->{payment_id}),
                   $form->{id});
     do_query($form, $dbh, $query, @values);