Revision a7b92129
Von Waldemar Toews vor mehr als 8 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
454 | 454 |
my $num_due; |
455 | 455 |
my $num_follow_ups; |
456 | 456 |
if ($::form->{id}) { |
457 |
my $follow_ups = FU->follow_ups('trans_id' => $::form->{id}); |
|
457 |
my $follow_ups = FU->follow_ups('trans_id' => $::form->{id}, 'not_done' => 1);
|
|
458 | 458 |
|
459 | 459 |
if (@{ $follow_ups }) { |
460 | 460 |
$num_due = sum map { $_->{due} * 1 } @{ $follow_ups }; |
bin/mozilla/ar.pl | ||
---|---|---|
483 | 483 |
my $cgi = $::request->{cgi}; |
484 | 484 |
|
485 | 485 |
if ( $form->{id} ) { |
486 |
my $follow_ups = FU->follow_ups('trans_id' => $form->{id}); |
|
486 |
my $follow_ups = FU->follow_ups('trans_id' => $form->{id}, 'not_done' => 1);
|
|
487 | 487 |
if ( @{ $follow_ups} ) { |
488 | 488 |
$form->{follow_up_length} = scalar(@{$follow_ups}); |
489 | 489 |
$form->{follow_up_due_length} = sum(map({ $_->{due} * 1 } @{ $follow_ups })); |
bin/mozilla/gl.pl | ||
---|---|---|
902 | 902 |
my ($follow_ups, $follow_ups_due); |
903 | 903 |
|
904 | 904 |
if ($::form->{id}) { |
905 |
$follow_ups = FU->follow_ups('trans_id' => $::form->{id}); |
|
905 |
$follow_ups = FU->follow_ups('trans_id' => $::form->{id}, 'not_done' => 1);
|
|
906 | 906 |
$follow_ups_due = sum map { $_->{due} * 1 } @{ $follow_ups || [] }; |
907 | 907 |
} |
908 | 908 |
|
bin/mozilla/ir.pl | ||
---|---|---|
406 | 406 |
|
407 | 407 |
# follow ups |
408 | 408 |
if ($form->{id}) { |
409 |
$form->{follow_ups} = FU->follow_ups('trans_id' => $form->{id}) || []; |
|
409 |
$form->{follow_ups} = FU->follow_ups('trans_id' => $form->{id}, 'not_done' => 1) || [];
|
|
410 | 410 |
$form->{follow_ups_unfinished} = ( sum map { $_->{due} * 1 } @{ $form->{follow_ups} } ) || 0; |
411 | 411 |
} |
412 | 412 |
|
bin/mozilla/is.pl | ||
---|---|---|
472 | 472 |
|
473 | 473 |
# follow ups |
474 | 474 |
if ($form->{id}) { |
475 |
$form->{follow_ups} = FU->follow_ups('trans_id' => $form->{id}) || []; |
|
475 |
$form->{follow_ups} = FU->follow_ups('trans_id' => $form->{id}, 'not_done' => 1) || [];
|
|
476 | 476 |
$form->{follow_ups_unfinished} = ( sum map { $_->{due} * 1 } @{ $form->{follow_ups} } ) || 0; |
477 | 477 |
} |
478 | 478 |
|
bin/mozilla/oe.pl | ||
---|---|---|
434 | 434 |
$TMPL_VAR{follow_up_trans_info} = ($form->{type} =~ /_quotation$/ ? $form->{quonumber} : $form->{ordnumber}) . " ($follow_up_vc)"; |
435 | 435 |
|
436 | 436 |
if ($form->{id}) { |
437 |
my $follow_ups = FU->follow_ups('trans_id' => $form->{id}); |
|
437 |
my $follow_ups = FU->follow_ups('trans_id' => $form->{id}, 'not_done' => 1);
|
|
438 | 438 |
|
439 | 439 |
if (scalar @{ $follow_ups }) { |
440 | 440 |
$TMPL_VAR{num_follow_ups} = scalar @{ $follow_ups }; |
Auch abrufbar als: Unified diff
BUG-Fix: Die Anzeige der fällige Wiedervorlagen ist falsch (zu hoch).
In ERP-Dokumenten werden werden "zu viele" Wiedervorlagen angezeigt.
Bei der Berechnung werden sowohl offene als auch geschlossene Wiedervorlagen berücksichtigt.