Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7a452195

Von Moritz Bunkus vor fast 11 Jahren hinzugefügt

  • ID 7a452195542fca0d82b74763fbc1eb97770d60a6
  • Vorgänger 7f82c68c
  • Nachfolger 17536e15

Finanzcontrollingbericht: bezahlte Beträge als Netto und nicht Brutto berechnen

Unterschiede anzeigen:

SL/Controller/FinancialControllingReport.pm
148 148

  
149 149
    $order->{delivered_amount}  = sum map { $self->sum_relevant_items(order => $order, other => $_, by_order => 1) } @delivery_orders;
150 150
    $order->{billed_amount}     = sum map { $self->sum_relevant_items(order => $order, other => $_)                } @invoices;
151
    $order->{paid_amount}       = sum map { $_->paid                                                               } @invoices;
151
    $order->{paid_amount}       = sum map { $_->paid * $_->netamount / (($_->amount * 1) || ($_->netamount * 1) || 1) } @invoices;
152 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};

Auch abrufbar als: Unified diff