From 332980848d088adfe7e1cd025c23452325134207 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 27 Apr 2015 09:34:45 +0200 Subject: [PATCH] Lieferantentyp und -Rabatt oben in Einkaufmasken richtig anzeigen. Die Anzeige von Typ und Rabatt war in Angebot/Auftrag und Lieferschein schon vorgesehen, aber der Rabatt wurd nicht geholt. In der Einkaufsrechnung fehlte die Anzeige ganz. --- SL/IR.pm | 2 +- templates/webpages/ir/form_header.html | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/SL/IR.pm b/SL/IR.pm index 0fecc27a8..17dcaf388 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -1135,7 +1135,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) diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html index 5a8cb024a..362bd8957 100644 --- a/templates/webpages/ir/form_header.html +++ b/templates/webpages/ir/form_header.html @@ -80,6 +80,12 @@ [% LxERP.format_amount(creditremaining,0 ,'0') %] +[%- IF business %] + + [% 'Vendor type' | $T8 %] + [% business %]; [% 'Trade Discount' | $T8 %] [% LxERP.format_amount(tradediscount * 100) %] % + +[%- END %] [% 'Record in' | $T8 %] -- 2.20.1