From: Jan Büren Date: Tue, 22 Mar 2022 16:24:28 +0000 (+0100) Subject: Anzahlungsrechnung auch den netto-Betrag an die Druckvorlagen übergeben X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~84 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=44b4b93140b3404b2848dbb39073656729c06b96;p=kivitendo-erp.git Anzahlungsrechnung auch den netto-Betrag an die Druckvorlagen übergeben --- 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));