Revision 52b04172
Von Jan Büren vor mehr als 4 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
460 | 460 |
my $follow_up_trans_info = "$form->{invnumber} ($follow_up_vc)"; |
461 | 461 |
|
462 | 462 |
$::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.RecordTemplate.js", "kivi.File.js", "kivi.AP.js", "kivi.CustomerVendor.js", "kivi.Validator.js"); |
463 |
my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local; |
|
464 |
my $first_taxchart; |
|
465 |
|
|
466 | 463 |
# $form->{totalpaid} is used by the action bar setup to determine |
467 | 464 |
# whether or not canceling is allowed. Therefore it must be |
468 | 465 |
# calculated prior to the action bar setup. |
... | ... | |
472 | 469 |
|
473 | 470 |
$form->header(); |
474 | 471 |
|
472 |
my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local; |
|
473 |
my $first_taxchart; |
|
474 |
|
|
475 | 475 |
for my $i (1 .. $form->{rowcount}) { |
476 | 476 |
|
477 | 477 |
# format amounts |
Auch abrufbar als: Unified diff
Logik-Kosmetik: Die Variablen werden lokal für der Schleife benötigt
Aufruf von weiteren Funktionen nach der initialiserung erschwert
die Lesbarkeit