Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a4b49444

Von Kivitendo Admin vor fast 7 Jahren hinzugefügt

  • ID a4b49444e857ef293f5fa61dbacf72a1325f38e8
  • Vorgänger 59320b5a
  • Nachfolger 066bbae7

Whitespace

Unterschiede anzeigen:

SL/Controller/BankTransaction.pm
127 127
    $open_invoice->{skonto_type} = 'without_skonto';
128 128
    foreach ( @{$all_open_sepa_export_items}) {
129 129
      if ( $_->ap_id == $open_invoice->id ||  $_->ar_id == $open_invoice->id ) {
130
        my $factor = ($_->ar_id == $open_invoice->id?1:-1);
130
        my $factor                   = ($_->ar_id == $open_invoice->id ? 1 : -1);
131 131
        #$main::lxdebug->message(LXDebug->DEBUG2(),"sepa_exitem=".$_->id." for invoice ".$open_invoice->id." factor=".$factor);
132 132
        $open_invoice->{realamount}  = $::form->format_amount(\%::myconfig,$open_invoice->amount*$factor,2);
133
        push @{$open_invoice->{sepa_export_item}} , $_ ;
133
        push @{$open_invoice->{sepa_export_item}}, $_;
134 134
        $open_invoice->{skonto_type} = $_->payment_type;
135 135
        $sepa_exports{$_->sepa_export_id} ||= { count => 0, is_ar => 0, amount => 0, proposed => 0, invoices => [], item => $_ };
136
        $sepa_exports{$_->sepa_export_id}->{count}++ ;
136
        $sepa_exports{$_->sepa_export_id}->{count}++;
137 137
        $sepa_exports{$_->sepa_export_id}->{is_ar}++ if  $_->ar_id == $open_invoice->id;
138 138
        $sepa_exports{$_->sepa_export_id}->{amount} += $_->amount * $factor;
139 139
        push @{ $sepa_exports{$_->sepa_export_id}->{invoices} }, $open_invoice;

Auch abrufbar als: Unified diff