foreach $key (@periods) {
$form->{ "$key" . "gesamtleistung" } = 0;
$form->{ "$key" . "gesamtkosten" } = 0;
+ foreach $kosten (@gesamtkosten) {
+ $form->{$kosten}{$key} *= -1;
+ }
+ $form->{4}{$key} *= -1;
foreach $category (@categories) {
$form->{ "$key" . "gesamtleistung" } += $form->{$item}{$key};
}
foreach $item (@gesamtkosten) {
+ $form->{$item}{$key} *= -1;
$form->{ "$key" . "gesamtkosten" } += $form->{$item}{$key};
}
$form->{ "$key" . "rohertrag" } =
foreach $item (@categories_cent) {
$form->{$item} =
- $form->format_amount($myconfig, $form->round_amount($form->{$item}, 2));
+ $form->format_amount($myconfig, $form->round_amount($form->{$item}, 2), 2, '0');
}
foreach $item (@categories_euro) {
$form->{$item} =
- $form->format_amount($myconfig, $form->round_amount($form->{$item}, 0));
+ $form->format_amount($myconfig, $form->round_amount($form->{$item}, 0), 0, '0');
}
$dbh->disconnect;