Skip to content

Commit

Permalink
release 0.11.0 with report updates and new features
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed Mar 31, 2023
1 parent 1798efa commit 829e69f
Show file tree
Hide file tree
Showing 20 changed files with 747 additions and 728 deletions.
18 changes: 1 addition & 17 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
0.10.0 2023-02-27 13:23:21 +0100 Tobias Oetiker <[email protected]>

- add new form field oktevnt_expense_note

0.9.1 2023-02-15 09:22:29 +0100 Tobias Oetiker <[email protected]>

- upgrade all

0.9.0 2023-02-15 09:04:56 +0100 Tobias Oetiker <[email protected]>

- switch to new html reports

0.8.4 2023-02-03 12:07:23 +0100 Tobias Oetiker <[email protected]>

- restrict finance view

0.8.3 2023-02-01 15:50:37 +0100 Tobias Oetiker <[email protected]>
0.11.0 2023-03-31 16:19:57 +0200 Tobias Oetiker <[email protected]>

- reverese sort Reports
- add event type to okt events in report
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.0
0.11.0
3 changes: 2 additions & 1 deletion cpanfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
requires 'CallBackery', '>= 0.43.0';
requires 'CallBackery', '>= 0.45.0';
requires 'Mojolicious', '>= 9.31';
requires 'Mojo::SQLite';
requires 'Mojolicious::Plugin::OpenAPI';
requires 'Crypt::ScryptKDF';
Expand Down
5 changes: 5 additions & 0 deletions lib/OktDB/GuiPlugin/Agency.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ has formCfg => sub {
{
key => 'search',
widget => 'text',
reloadOnFormReset => false,
set => {
width => 300,
placeholder => trm('search words ...'),
liveUpdate => true,
},
},
];
Expand Down Expand Up @@ -263,6 +265,9 @@ SQL_END
return $data;
}

sub getAllFieldValues ($self,$args,$extra,$locale){
return {};
}
1;

__END__
Expand Down
4 changes: 4 additions & 0 deletions lib/OktDB/GuiPlugin/ArtPers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ has formCfg => sub {
{
key => 'search',
widget => 'text',
reloadOnFormReset => false,
set => {
width => 300,
liveUpdate => true,
Expand Down Expand Up @@ -440,6 +441,9 @@ SQL_END
return $data;
}

sub getAllFieldValues ($self,$args,$extra,$locale){
return {};
}
1;

__END__
Expand Down
4 changes: 4 additions & 0 deletions lib/OktDB/GuiPlugin/Event.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ has formCfg => sub {
{
key => 'search',
widget => 'text',
reloadOnFormReset => false,
set => {
width => 300,
liveUpdate => true,
Expand Down Expand Up @@ -344,6 +345,9 @@ SQL_END
return $data;
}

sub getAllFieldValues ($self,$args,$extra,$locale){
return {};
}
1;

__END__
Expand Down
12 changes: 8 additions & 4 deletions lib/OktDB/GuiPlugin/OktEvent.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ has formCfg => sub {
{
key => 'search',
widget => 'text',
reloadOnFormReset => false,
set => {
width => 300,
liveUpdate => true,
Expand Down Expand Up @@ -221,7 +222,7 @@ has actionCfg => sub {

push @actions,{
label => trm('Report'),
action => 'download',
action => 'display',
addToContextMenu => true,
key => 'report',
buttonSet => {
Expand All @@ -239,9 +240,9 @@ has actionCfg => sub {
my $name = lc $id.'-'.$args->{selection}{artpers_name};
$name =~ s/[^_0-9a-z]+/-/g;
return {
asset => $rep->getReportPdf($id),
type => 'applicaton/pdf',
filename => $name.'.pdf',
asset => $rep->getReportHtml($id),
type => 'text/html',
filename => $name.'.html',
}
}
};
Expand Down Expand Up @@ -376,6 +377,9 @@ SQL_END
return $data;
}

sub getAllFieldValues ($self,$args,$extra,$locale){
return {};
}
1;

__END__
Expand Down
7 changes: 7 additions & 0 deletions lib/OktDB/GuiPlugin/Pers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use Mojo::Base 'CallBackery::GuiPlugin::AbstractTable', -signatures;
use CallBackery::Translate qw(trm);
use CallBackery::Exception qw(mkerror);
use Mojo::JSON qw(true false);
use Mojo::Util qw(dumper);
use Time::Piece;
use Text::ParseWords;
use OktDB::Model::PersReport;
Expand Down Expand Up @@ -33,13 +34,16 @@ has formCfg => sub {
{
key => 'show_removed',
widget => 'checkBox',
reloadOnFormReset => false,
label => trm('Show Removed Entries'),
},
{
key => 'search',
widget => 'text',
reloadOnFormReset => false,
set => {
width => 300,
liveUpdate => true,
placeholder => trm('search words ...'),
},
},
Expand Down Expand Up @@ -327,6 +331,9 @@ SQL_END
return $data;
}

sub getAllFieldValues ($self,$args,$extra,$locale){
return {};
}
1;

__END__
Expand Down
5 changes: 4 additions & 1 deletion lib/OktDB/GuiPlugin/Production.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ has formCfg => sub {
{
key => 'search',
widget => 'text',
reloadOnFormReset => false,
set => {
width => 300,
liveUpdate => true,
Expand Down Expand Up @@ -285,7 +286,9 @@ SQL_END
return $data;
}


sub getAllFieldValues ($self,$args,$extra,$locale){
return {};
}

1;

Expand Down
4 changes: 4 additions & 0 deletions lib/OktDB/GuiPlugin/ProgTeam.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ has formCfg => sub {
{
key => 'show_current',
widget => 'checkBox',
reloadOnFormReset => false,
label => trm('Show Current Members'),
},
];
Expand Down Expand Up @@ -219,6 +220,9 @@ SQL_END
return $data;
}

sub getAllFieldValues ($self,$args,$extra,$locale){
return {};
}
1;

__END__
Expand Down
4 changes: 4 additions & 0 deletions lib/OktDB/GuiPlugin/Review.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ has formCfg => sub {
{
key => 'search',
widget => 'text',
reloadOnFormReset => false,
set => {
width => 300,
liveUpdate => true,
Expand Down Expand Up @@ -392,6 +393,9 @@ SQL_END
return $data;
}

sub getAllFieldValues ($self,$args,$extra,$locale){
return {};
}
1;

__END__
Expand Down
2 changes: 2 additions & 0 deletions lib/OktDB/Model/ArtPersReport.pm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ sub getProductions ($self,$api) {
})->hashes->map(sub ($ev) {
$ev->{oktevent_start} = localtime(delete $ev->{oktevent_start_ts})->strftime('%d.%m.%Y %H:%M')
if $ev->{oktevent_start_ts};
$ev->{oktevent_start} .= gmtime(delete $ev->{oktevent_duration_s})->strftime(' (%H:%M)')
if $ev->{oktevent_duration_s} and $ev->{oktevent_start};
return $ev;
})->to_array;
$el->{events} = $db->select(['event'
Expand Down
Loading

0 comments on commit 829e69f

Please sign in to comment.