Revision 7a452195
Von Moritz Bunkus vor etwa 11 Jahren hinzugefügt
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
Finanzcontrollingbericht: bezahlte Beträge als Netto und nicht Brutto berechnen