X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDN.pm;h=76ee1b834d364fb12f861b1abb656da86efe37e2;hb=09800b73f7503b0de87cfa1c1e53250acd2e8781;hp=28eb6afc0877fe41ef9d26a29c12a1c52d30d6e8;hpb=e6349b94e3541e363e8c40dcd938d65a272ec51c;p=kivitendo-erp.git diff --git a/SL/DN.pm b/SL/DN.pm index 28eb6afc0..76ee1b834 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -657,8 +657,9 @@ sub get_invoices { ct.name AS customername, a.customer_id, a.duedate, a.amount - a.paid AS open_amount, a.direct_debit, + pt.description as payment_term, dep.description as departmentname, - + ct.invoice_mail AS cv_email, cfg.dunning_description, cfg.dunning_level, d.transdate AS dunning_date, d.duedate AS dunning_duedate, @@ -676,6 +677,7 @@ sub get_invoices { LEFT JOIN customer ct ON (a.customer_id = ct.id) LEFT JOIN department dep ON (a.department_id = dep.id) + LEFT JOIN payment_terms pt ON (a.payment_id = pt.id) LEFT JOIN dunning_config cfg ON (a.dunning_config_id = cfg.id) LEFT JOIN dunning_config nextcfg ON (nextcfg.id =