From: Jan Büren Date: Thu, 29 Sep 2016 10:56:17 +0000 (+0200) Subject: Abteilung an Druckvorlage in Mahnungen übergeben X-Git-Tag: release-3.5.4~2010 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5f8a4fc5783f6533add3015efc446574d9d8e96d;p=kivitendo-erp.git Abteilung an Druckvorlage in Mahnungen übergeben --- diff --git a/SL/DN.pm b/SL/DN.pm index 8191c5c19..5dd6fe918 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -799,7 +799,8 @@ sub print_dunning { ar.transdate, ar.duedate, ar.customer_id, ar.invnumber, ar.ordnumber, ar.cp_id, ar.amount, ar.netamount, ar.paid, - (SELECT cu.name FROM currencies cu WHERE cu.id=ar.currency_id) AS curr, + (SELECT cu.name FROM currencies cu WHERE cu.id = ar.currency_id) AS curr, + (SELECT description from department WHERE id = ar.department_id) AS department, ar.amount - ar.paid AS open_amount, ar.amount - ar.paid + da.fee + da.interest AS linetotal