From f257623461bda92a232a238a322f207b8964faab Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Mon, 16 Jan 2006 14:57:19 +0000 Subject: [PATCH] Neue Variable p_discount = Rabattprozente pro Position fuer Rechnungen, Auftraege und Angebote eingefuert. Die Variable discount enthaelt den als Rabatt gewaehrten Betrag --- SL/IS.pm | 1 + SL/OE.pm | 1 + 2 files changed, 2 insertions(+) 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 4e16ed5f1..04c7c499d 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -919,6 +919,7 @@ sub order_details { $linetotal = ($linetotal != 0) ? $linetotal : " "; push(@{ $form->{discount} }, $discount); + push(@{ $form->{p_discount} }, $form->{"discount_$i"}); $form->{ordtotal} += $linetotal; -- 2.20.1