Revision 7a7f33b5
Von Moritz Bunkus vor fast 17 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
32 | 32 |
#====================================================================== |
33 | 33 |
|
34 | 34 |
use POSIX qw(strftime); |
35 |
use List::Util qw(sum); |
|
35 | 36 |
|
36 | 37 |
use SL::AP; |
38 |
use SL::FU; |
|
37 | 39 |
use SL::IR; |
38 | 40 |
use SL::IS; |
39 | 41 |
use SL::PE; |
... | ... | |
387 | 389 |
$button2 = |
388 | 390 |
qq|<td><input name=duedate id=duedate size=11 title="$myconfig{dateformat}" value="$form->{duedate}" onBlur=\"check_right_date_format(this)\"> $readonly</td>|; |
389 | 391 |
} |
392 |
|
|
393 |
my $follow_up_vc = $form->{vendor}; |
|
394 |
$follow_up_vc =~ s/--.*?//; |
|
395 |
my $follow_up_trans_info = "$form->{invnumber} ($follow_up_vc)"; |
|
396 |
|
|
390 | 397 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|; |
391 | 398 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/show_vc_details.js"></script>|; |
399 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/follow_up.js"></script>|; |
|
392 | 400 |
|
393 | 401 |
$form->header; |
394 | 402 |
$onload = qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; |
... | ... | |
404 | 412 |
<input type=hidden name=locked value=$form->{locked}> |
405 | 413 |
<input type=hidden name=title value="$title"> |
406 | 414 |
|
415 |
<input type="hidden" name="follow_up_trans_id_1" value="| . H($form->{id}) . qq|"> |
|
416 |
<input type="hidden" name="follow_up_trans_type_1" value="ap_transaction"> |
|
417 |
<input type="hidden" name="follow_up_trans_info_1" value="| . H($follow_up_trans_info) . qq|"> |
|
418 |
<input type="hidden" name="follow_up_rowcount" value="1"> |
|
419 |
|
|
407 | 420 |
| . ($form->{saved_message} ? qq|<p>$form->{saved_message}</p>| : "") . qq| |
408 | 421 |
|
409 | 422 |
<table width=100%> |
... | ... | |
753 | 766 |
|
754 | 767 |
$auth->assert('general_ledger'); |
755 | 768 |
|
769 |
my $follow_ups_block; |
|
770 |
if ($form->{id}) { |
|
771 |
my $follow_ups = FU->follow_ups('trans_id' => $form->{id}); |
|
772 |
|
|
773 |
if (@{ $follow_ups} ) { |
|
774 |
my $num_due = sum map { $_->{due} * 1 } @{ $follow_ups }; |
|
775 |
$follow_ups_block = qq|<p>| . $locale->text("There are #1 unfinished follow-ups of which #2 are due.", scalar @{ $follow_ups }, $num_due) . qq|</p>|; |
|
776 |
} |
|
777 |
} |
|
778 |
|
|
756 | 779 |
print qq| |
757 | 780 |
|
781 |
$follow_ups_block |
|
782 |
|
|
758 | 783 |
<input name=callback type=hidden value="$form->{callback}"> |
759 | 784 |
<input name="gldate" type="hidden" value="| . Q($form->{gldate}) . qq|"> |
760 | 785 |
| |
... | ... | |
792 | 817 |
|
793 | 818 |
print qq| <input class=submit type=submit name=action value="| . $locale->text('Post Payment') . qq|"> |
794 | 819 |
<input class=submit type=submit name=action value="| . $locale->text('Use As Template') . qq|"> |
820 |
<input type="button" class="submit" onclick="follow_up_window()" value="| . $locale->text('Follow-Up') . qq|"> |
|
795 | 821 |
|; |
796 | 822 |
} elsif (($transdate > $closedto) && !$form->{id}) { |
797 | 823 |
print qq| |
Auch abrufbar als: Unified diff
Zwei neue Features:
1. Beliebige Notizen für Kunden und Lieferanten können angelegt werden. Solche Notizen können auf Wiedervorlage gelegt werden, was durch 2. implementiert ist.
2. Einkaufs- und Verkaufsbelege können auf Wiedervorlage gelegt werden. Wiedervorlagen können für beliebige Nutzer erstellt werden (Aufgabe an andere Nutzer deligieren). Anstehende Wiedervorlagen und abgelaufene Angebote werden auf der Startseite in einer Aufgabenliste angezeigt.