X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fa4f206791d9fa06c32ee500d1778efc412b78fb..88d162cc5e8e8d3810059d918a1eef6a2b205984:/SL/SEPA.pm diff --git a/SL/SEPA.pm b/SL/SEPA.pm index b8cdee03f..a9ba2f3da 100644 --- a/SL/SEPA.pm +++ b/SL/SEPA.pm @@ -46,7 +46,9 @@ sub retrieve_open_invoices { COALESCE(vc.iban, '') <> '' AND COALESCE(vc.bic, '') <> '' ${mandate} AS vc_bank_info_ok, - ${arap}.amount - ${arap}.paid - COALESCE(open_transfers.amount, 0) AS open_amount + ${arap}.amount - ${arap}.paid - COALESCE(open_transfers.amount, 0) AS open_amount, + COALESCE(open_transfers.amount, 0) AS transfer_amount, + pt.description as pt_description FROM ${arap} LEFT JOIN ${vc} vc ON (${arap}.${vc}_id = vc.id) @@ -64,6 +66,7 @@ sub retrieve_open_invoices { ORDER BY lower(vc.name) ASC, lower(${arap}.invnumber) ASC |; + # $main::lxdebug->message(LXDebug->DEBUG2(),"sepa add query:".$query); my $results = selectall_hashref_query($form, $dbh, $query);