Lines 27-34
use Koha::BackgroundJob::PseudonymizeStatistic;
Link Here
|
27 |
|
27 |
|
28 |
use base qw(Koha::Object); |
28 |
use base qw(Koha::Object); |
29 |
|
29 |
|
30 |
our @allowed_accounts_types = qw( writeoff payment ); |
30 |
our @allowed_accounts_types = qw( writeoff payment ); |
31 |
our @allowed_circulation_types = qw( renew issue localuse return onsite_checkout recall item_found item_lost ); |
31 |
our @allowed_circulation_types = |
|
|
32 |
qw( renew issue localuse return onsite_checkout recall item_found item_lost ill_request ); |
32 |
our @mandatory_accounts_keys = qw( type branch borrowernumber value ); # note that amount is mapped to value |
33 |
our @mandatory_accounts_keys = qw( type branch borrowernumber value ); # note that amount is mapped to value |
33 |
our @mandatory_circulation_keys = qw( type branch borrowernumber itemnumber ccode itemtype ); |
34 |
our @mandatory_circulation_keys = qw( type branch borrowernumber itemnumber ccode itemtype ); |
34 |
|
35 |
|
Lines 149-155
Generate a pesudonymized version of the statistic.
Link Here
|
149 |
sub pseudonymize { |
150 |
sub pseudonymize { |
150 |
my ($self) = @_; |
151 |
my ($self) = @_; |
151 |
|
152 |
|
152 |
return unless ( $self->borrowernumber && grep { $_ eq $self->type } qw(renew issue return onsite_checkout) ); |
153 |
return |
|
|
154 |
unless ( $self->borrowernumber && grep { $_ eq $self->type } |
155 |
qw(renew issue return onsite_checkout ill_request) ); |
153 |
|
156 |
|
154 |
# FIXME When getting the object from svc/renewal we get a DateTime object |
157 |
# FIXME When getting the object from svc/renewal we get a DateTime object |
155 |
# normally we just fetch from DB to clear this, but statistics has no primary key |
158 |
# normally we just fetch from DB to clear this, but statistics has no primary key |
156 |
- |
|
|