X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f7c9046f3d5014fd964ac9f85b3d124ffc4aeb4f..b68c23bf6e98cf678081dcaa84a8593b10aaff29:/SL/CT.pm diff --git a/SL/CT.pm b/SL/CT.pm index 9b2b79f13..a661e8c58 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -45,6 +45,8 @@ use SL::DBUtils; use SL::FU; use SL::Notes; +use strict; + sub get_tuple { $main::lxdebug->enter_sub(); @@ -939,7 +941,7 @@ sub get_delivery { qq|SELECT s.shiptoname, i.qty $qty_sign, | . qq| ${arap}.id, ${arap}.transdate, ${arap}.invnumber, ${arap}.ordnumber, | . qq| i.description, i.unit, i.sellprice, | . - qq| oe.id AS oe_id | . + qq| oe.id AS oe_id, invoice | . qq|FROM $arap | . qq|LEFT JOIN shipto s ON | . ($arap eq "ar" @@ -1069,7 +1071,7 @@ sub get_bank_info { my $table = $params{vc} eq 'customer' ? 'customer' : 'vendor'; my @ids = ref $params{id} eq 'ARRAY' ? @{ $params{id} } : ($params{id}); - my $placeholders = ('?') x scalar @ids; + my $placeholders = join ", ", ('?') x scalar @ids; my $query = qq|SELECT id, name, account_number, bank, bank_code, iban, bic FROM ${table} WHERE id IN (${placeholders})|;