# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+use Modern::Perl;
+
use Mojo::Base 'Mojolicious::Controller';
use Koha::Illrequests;
my $args = $c->req->params->to_hash // {};
my $output = [];
- my @format_dates = ( 'placed', 'updated' );
+ my @format_dates = ( 'placed', 'updated', 'completed' );
# Create a hash where all keys are embedded values
# Enables easy checking
foreach my $p(@{$patron_arr}) {
if ($p->{borrowernumber} == $req->borrowernumber) {
$to_push->{patron} = {
- firstname => $p->{firstname},
- surname => $p->{surname},
- cardnumber => $p->{cardnumber}
+ patron_id => $p->{borrowernumber},
+ firstname => $p->{firstname},
+ surname => $p->{surname},
+ cardnumber => $p->{cardnumber}
};
last;
}