From: Philip Reetz
Date: Mon, 16 Jan 2006 14:57:19 +0000 (+0000)
Subject: Neue Variable p_discount = Rabattprozente pro Position fuer Rechnungen, Auftraege...
X-Git-Tag: release-2.4.0^2~382
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f257623461bda92a232a238a322f207b8964faab;p=kivitendo-erp.git
Neue Variable p_discount = Rabattprozente pro Position fuer Rechnungen, Auftraege und Angebote eingefuert. Die Variable discount enthaelt den als Rabatt gewaehrten Betrag
---
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;