From ecbb5ab171fa8cc38a3575c77401782aada88945 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stephan=20K=C3=B6hler?= Date: Mon, 16 Jan 2006 16:41:59 +0000 Subject: [PATCH] Merge von 784,790 aus unstable: Bugfix 220 Nachtrag Variablen -Neue Variable p_discount = Rabattprozente pro Position fuer Rechnungen, Auftraege und Angebote eingefuert. Die Variable discount enthaelt den als Rabatt gewaehrten Betrag -Latex-template-variablen fuer r784 angepasst --- SL/IS.pm | 1 + SL/OE.pm | 1 + doc/latex-template-variablen.html | 9 ++++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/SL/IS.pm b/SL/IS.pm index 14f375a1f..484dcb9d0 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -167,6 +167,7 @@ sub invoice_details { $linetotal = ($linetotal != 0) ? $linetotal : " "; push(@{ $form->{discount} }, $discount); + push(@{ $form->{p_discount} }, $form->{"discount_$i"}); $form->{total} += $linetotal; diff --git a/SL/OE.pm b/SL/OE.pm index 6dec175bd..535006598 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -914,6 +914,7 @@ sub order_details { $linetotal = ($linetotal != 0) ? $linetotal : " "; push(@{ $form->{discount} }, $discount); + push(@{ $form->{p_discount} }, $form->{"discount_$i"}); $form->{ordtotal} += $linetotal; diff --git a/doc/latex-template-variablen.html b/doc/latex-template-variablen.html index 8cbb7b2db..e19eb6dad 100644 --- a/doc/latex-template-variablen.html +++ b/doc/latex-template-variablen.html @@ -524,6 +524,10 @@ td { description Artikelbeschreibung + + discount + Rabatt als Betrag + linetotal Zeilensumme (Anzahl * Einzelpreis) @@ -541,7 +545,10 @@ td { Artikelnummer - partnotes + p_discount + Rabatt in Prozent + + partnotes Die beim Artikel gespeicherten Bemerkungen -- 2.20.1