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
}
1;
__END__
=encoding utf-8
=head1 NAME
SL::Controller::ChartOfAccounts - Controller for the chart of accounts report
=head1 SYNOPSIS
New controller for Reports -> Chart of Accounts.
This replaces the old bin/mozilla/ca.pl chart_of_accounts sub.
The rest of the functions from ca.pl are separated into the new ListTransactions.pm
controller.
=head1 DESCRIPTION
Displays a list of all accounts with their balance.
Clicking on an account number will open the form for Reports -> List Transactions, with
the account number preselected.
Export to PDF, CSV and Chart is possible.
=head1 CAVEATS / TODO
Database queries are still from SL::CA.
I tried to use the get_balance function from SL::DB::Manager::Chart here,
but the results i got were different (numbers and defined balance/amount).
The database queries in CA are more sophisticated, therefore i'm still using these for now.
Also performance wise they seem faster.
=head1 BUGS
None yet.
=head1 AUTHOR
Cem Aydin E<lt>cem.aydin@revamp-it.chE<gt>
=cut
SL/Controller/ListTransactions.pm
}
1;
__END__
=encoding utf-8
=head1 NAME
SL::Controller::ListTransactions - Controller for the ListTransactions report
=head1 SYNOPSIS
New controller for Reports -> ListTransactions.
This replaces the functions from bin/mozilla/ca.pl.
The chart_of_accounts functionality is implemented separately in
SL::Controller::ChartOfAccounts.
=head1 DESCRIPTION / Key Features
A form is shown to select the accounts and the date period, as well as
options and the sorting of the report.
At this point, exporting all accounts is possible via Export -> Export all
accounts to CSV (ZIP file).
This will export all accounts for the selected time period and options,
and offer the resulting file for download.
The date period selection makes use of a new presenter SL::Presenter::DatePeriod.
If no date is selected all transactions are shown.
The resulting report should be equivalent to the old behavior, except
for the sorting, that has to be selected in advance now.
=head1 CAVEATS / TODO
Database queries are still from SL::CA.
The database queries in SL::CA are quite sophisticated, therefore i'm still using
these for now.
TODO: Exporting all accounts to PDF (ZIP file) should be added.
=head1 BUGS
None yet.
=head1 AUTHOR
Cem Aydin E<lt>cem.aydin@revamp-it.chE<gt>
=cut

Auch abrufbar als: Unified diff