source: trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Summary/EmploymentByPeriod.pm @ 1761

Last change on this file since 1761 was 1758, checked in by nanardon, 8 years ago

Ajout compte de statut par période

File size: 797 bytes
Line 
1package LATMOS::Accounts::Web::Controller::Summary::EmploymentByPeriod;
2use Moose;
3use namespace::autoclean;
4use DateTime;
5
6BEGIN { extends 'Catalyst::Controller'; }
7
8=head1 NAME
9
10LATMOS::Accounts::Web::Controller::Summary::EmploymentByPeriod - Catalyst Controller
11
12=head1 DESCRIPTION
13
14Catalyst Controller.
15
16=head1 METHODS
17
18=cut
19
20
21=head2 index
22
23=cut
24
25sub index :Path :Args(0) {
26    my ( $self, $c ) = @_;
27
28    my $year = DateTime->now->year;
29    $c->req->params->{start} ||= "01/01/$year";
30    $c->req->params->{end}   ||= "31/12/$year";
31}
32
33
34
35=encoding utf8
36
37=head1 AUTHOR
38
39Olivier Thauvin,Guyancourt - B1428,+33 1 80285052,
40
41=head1 LICENSE
42
43This library is free software. You can redistribute it and/or modify
44it under the same terms as Perl itself.
45
46=cut
47
48__PACKAGE__->meta->make_immutable;
49
501;
Note: See TracBrowser for help on using the repository browser.