Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 17536e15

Von Moritz Bunkus vor fast 11 Jahren hinzugefügt

  • ID 17536e15b1bcaea827f2093f746c116cbb74a64e
  • Vorgänger 7a452195
  • Nachfolger 9c981a55

Finanzcontrollingbericht: kosmetik

Unterschiede anzeigen:

SL/Controller/FinancialControllingReport.pm
146 146
      map({ @{ $_->storno_invoices } } grep { $_->storno && !$_->storno_id } @invoices),
147 147
    );
148 148

  
149
    $order->{delivered_amount}  = sum map { $self->sum_relevant_items(order => $order, other => $_, by_order => 1) } @delivery_orders;
150
    $order->{billed_amount}     = sum map { $self->sum_relevant_items(order => $order, other => $_)                } @invoices;
149
    $order->{delivered_amount}  = sum map { $self->sum_relevant_items(order => $order, other => $_, by_order => 1)    } @delivery_orders;
150
    $order->{billed_amount}     = sum map { $self->sum_relevant_items(order => $order, other => $_)                   } @invoices;
151 151
    $order->{paid_amount}       = sum map { $_->paid * $_->netamount / (($_->amount * 1) || ($_->netamount * 1) || 1) } @invoices;
152
    my $billed_amount           = sum map { $_->netamount                                                          } @invoices;
152
    my $billed_amount           = sum map { $_->netamount                                                             } @invoices;
153 153
    $order->{other_amount}      = $billed_amount             - $order->{billed_amount};
154 154
    $order->{billable_amount}   = $order->{delivered_amount} - $order->{billed_amount};
155 155

  

Auch abrufbar als: Unified diff