From 44b4b93140b3404b2848dbb39073656729c06b96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 22 Mar 2022 17:24:28 +0100 Subject: [PATCH] =?utf8?q?Anzahlungsrechnung=20auch=20den=20netto-Betrag?= =?utf8?q?=20an=20die=20Druckvorlagen=20=C3=BCbergeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IS.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/IS.pm b/SL/IS.pm index 2ebf9aa26..fdc70ab3a 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -180,7 +180,8 @@ sub invoice_details { my @invoices_for_advance_payment_arrays = qw(iap_invnumber iap_transdate iap_amount iap_amount_nofmt iap_taxamount iap_taxamount_nofmt - iap_open_amount iap_open_amount_nofmt); + iap_open_amount iap_open_amount_nofmt + iap_netamount); map { $form->{TEMPLATE_ARRAYS}->{$_} = [] } (@arrays, @tax_arrays, @payment_arrays, @prepared_arrays, @invoices_for_advance_payment_arrays); @@ -599,6 +600,7 @@ sub invoice_details { push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_$_"} }, $invoice_for_advance_payment->$_) for qw(invnumber transdate); push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_amount_nofmt"} }, $invoice_for_advance_payment->amount); push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_amount"} }, $invoice_for_advance_payment->amount_as_number); + push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_netamount"} }, $invoice_for_advance_payment->netamount_as_number); push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_taxamount_nofmt"} }, $taxamount); push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_taxamount"} }, $form->format_amount($myconfig, $taxamount, 2)); -- 2.20.1