Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5829f093

Von Cem Aydin vor mehr als 1 Jahr hinzugefügt

POD für ChartOfAccounts und ListTransactions Controller hinzugefügt

Unterschiede anzeigen:

SL/Controller/ChartOfAccounts.pm
110 110
}
111 111

  
112 112
1;
113

  
114
__END__
115

  
116
=encoding utf-8
117

  
118
=head1 NAME
119

  
120
SL::Controller::ChartOfAccounts - Controller for the chart of accounts report
121

  
122
=head1 SYNOPSIS
123

  
124
New controller for Reports -> Chart of Accounts.
125

  
126
This replaces the old bin/mozilla/ca.pl chart_of_accounts sub.
127

  
128
The rest of the functions from ca.pl are separated into the new ListTransactions.pm
129
controller.
130

  
131
=head1 DESCRIPTION
132

  
133
Displays a list of all accounts with their balance.
134

  
135
Clicking on an account number will open the form for Reports -> List Transactions, with
136
the account number preselected.
137

  
138
Export to PDF, CSV and Chart is possible.
139

  
140
=head1 CAVEATS / TODO
141

  
142
Database queries are still from SL::CA.
143

  
144
I tried to use the get_balance function from SL::DB::Manager::Chart here,
145
but the results i got were different (numbers and defined balance/amount).
146
The database queries in CA are more sophisticated, therefore i'm still using these for now.
147
Also performance wise they seem faster.
148

  
149
=head1 BUGS
150

  
151
None yet.
152

  
153
=head1 AUTHOR
154

  
155
Cem Aydin E<lt>cem.aydin@revamp-it.chE<gt>
156

  
157
=cut
SL/Controller/ListTransactions.pm
485 485
}
486 486

  
487 487
1;
488

  
489
__END__
490

  
491
=encoding utf-8
492

  
493
=head1 NAME
494

  
495
SL::Controller::ListTransactions - Controller for the ListTransactions report
496

  
497
=head1 SYNOPSIS
498

  
499
New controller for Reports -> ListTransactions.
500

  
501
This replaces the functions from bin/mozilla/ca.pl.
502

  
503
The chart_of_accounts functionality is implemented separately in
504
SL::Controller::ChartOfAccounts.
505

  
506
=head1 DESCRIPTION / Key Features
507

  
508
A form is shown to select the accounts and the date period, as well as
509
options and the sorting of the report.
510

  
511
At this point, exporting all accounts is possible via Export -> Export all
512
accounts to CSV (ZIP file).
513

  
514
This will export all accounts for the selected time period and options,
515
and offer the resulting file for download.
516

  
517
The date period selection makes use of a new presenter SL::Presenter::DatePeriod.
518

  
519
If no date is selected all transactions are shown.
520

  
521
The resulting report should be equivalent to the old behavior, except
522
for the sorting, that has to be selected in advance now.
523

  
524
=head1 CAVEATS / TODO
525

  
526
Database queries are still from SL::CA.
527

  
528
The database queries in SL::CA are quite sophisticated, therefore i'm still using
529
these for now.
530

  
531
TODO: Exporting all accounts to PDF (ZIP file) should be added.
532

  
533
=head1 BUGS
534

  
535
None yet.
536

  
537
=head1 AUTHOR
538

  
539
Cem Aydin E<lt>cem.aydin@revamp-it.chE<gt>
540

  
541
=cut

Auch abrufbar als: Unified diff