X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fc35d1dd4441b0dd26fe0b1b397cc66508a715f3..a87694dc525b4eabff11029f1e5401621e2bd3bc:/SL/IR.pm diff --git a/SL/IR.pm b/SL/IR.pm index 208d2e4fb..8bd2f5f53 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -1133,7 +1133,7 @@ sub get_vendor { v.email, v.cc, v.bcc, v.language_id, v.payment_id, v.delivery_term_id, v.street, v.zipcode, v.city, v.country, v.taxzone_id, cu.name AS curr, v.direct_debit, $duedate + COALESCE(pt.terms_netto, 0) AS duedate, - b.description AS business + b.discount AS tradediscount, b.description AS business FROM vendor v LEFT JOIN business b ON (b.id = v.business_id) LEFT JOIN payment_terms pt ON (v.payment_id = pt.id)