Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c1146a01

Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt

  • ID c1146a014cfe8c9739fe3a58d86ae9d410422416
  • Vorgänger 72b0afb4
  • Nachfolger 27ca3a23

Anzahlungs-Rg.: Druckvariblen: offenen Betrag jeder Anzahlungs-Rg. und Summe

Unterschiede anzeigen:

SL/IS.pm
586 586
    my %pat       = $invoice_for_advance_payment->calculate_prices_and_taxes;
587 587
    my $taxamount = sum0 values %{ $pat{taxes_by_tax_id} };
588 588

  
589
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_$_"} },              $invoice_for_advance_payment->$_) for qw(invnumber transdate);
590
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_amount_nofmt"} },    $invoice_for_advance_payment->amount);
591
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_amount"} },          $invoice_for_advance_payment->amount_as_number);
592
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_taxamount_nofmt"} }, $taxamount);
593
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_taxamount"} },       $form->format_amount($myconfig, $taxamount, 2));
594

  
595
    $form->{iap_amount_nofmt}    += $invoice_for_advance_payment->amount;
596
    $form->{iap_taxamount_nofmt} += $taxamount;
597
    $form->{iap_existing}         = 1;
598
  }
599
  $form->{iap_amount}    = $form->format_amount($myconfig, $form->{iap_amount_nofmt},    2);
600
  $form->{iap_taxamount} = $form->format_amount($myconfig, $form->{iap_taxamount_nofmt}, 2);
589
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_$_"} },                $invoice_for_advance_payment->$_) for qw(invnumber transdate);
590
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_amount_nofmt"} },      $invoice_for_advance_payment->amount);
591
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_amount"} },            $invoice_for_advance_payment->amount_as_number);
592
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_taxamount_nofmt"} },   $taxamount);
593
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_taxamount"} },         $form->format_amount($myconfig, $taxamount, 2));
594

  
595
    my $open_amount = $form->round_amount($invoice_for_advance_payment->open_amount, 2);
596
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_open_amount_nofmt"} }, $open_amount);
597
    push(@{ $form->{TEMPLATE_ARRAYS}->{"iap_open_amount"} },       $form->format_amount($myconfig, $open_amount, 2));
598

  
599
    $form->{iap_amount_nofmt}      += $invoice_for_advance_payment->amount;
600
    $form->{iap_taxamount_nofmt}   += $taxamount;
601
    $form->{iap_open_amount_nofmt} += $open_amount;
602
    $form->{iap_existing}           = 1;
603
  }
604
  $form->{iap_amount}      = $form->format_amount($myconfig, $form->{iap_amount_nofmt},      2);
605
  $form->{iap_taxamount}   = $form->format_amount($myconfig, $form->{iap_taxamount_nofmt},   2);
606
  $form->{iap_open_amount} = $form->format_amount($myconfig, $form->{iap_open_amount_nofmt}, 2);
601 607

  
602 608
  $main::lxdebug->leave_sub();
603 609
}
templates/print/marei/invoice.tex
158 158
<%if iap_existing%>%
159 159
  Es sind folgende Anzahlungsrechnungen vorhanden:\\
160 160
  <%foreach iap_invnumber%>%
161
    <%iap_invnumber%> <%iap_invdate%> <%iap_amount%> <%iap_taxamount%>\\%
161
    <%iap_invnumber%> <%iap_invdate%> <%iap_amount%> <%iap_taxamount%> (offen: <%iap_open_amount%>)\\%
162 162
    <%end iap_invnumber%>%
163 163
  Die Summen sind:\\
164
  \bfseries <%iap_amount%> \bfseries <%iap_taxamount%>\\%
164
  \bfseries <%iap_amount%> \bfseries <%iap_taxamount%> (offen: <%iap_open_amount%>)\\%
165 165
<%end iap_available%>%
166 166

  
167 167
\Ifstr{<%deliverydate%>}{}{%

Auch abrufbar als: Unified diff