From 670d770d843253672f76c8c830dd8d21bd606d1f Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 15 Jan 2018 17:14:16 +0000 Subject: [PATCH] Fixed upload and added category read to transaction --- lib/Pear/LocalLoop/Controller/Api/Upload.pm | 2 +- templates/admin/transactions/read.html.ep | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/Pear/LocalLoop/Controller/Api/Upload.pm b/lib/Pear/LocalLoop/Controller/Api/Upload.pm index 56f5ca6..e303126 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Upload.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Upload.pm @@ -209,7 +209,7 @@ sub post_upload { } if ( defined $category ) { - my $c->schema->resultset('TransactionCategory')->create({ + $c->schema->resultset('TransactionCategory')->create({ category_id => $category, transaction_id => $new_transaction->id, }); diff --git a/templates/admin/transactions/read.html.ep b/templates/admin/transactions/read.html.ep index 3782905..0b180ae 100644 --- a/templates/admin/transactions/read.html.ep +++ b/templates/admin/transactions/read.html.ep @@ -23,23 +23,27 @@
- +
- +
- +
- + + +
+
+
- +