Added initial for upload to accept recurring type
This commit is contained in:
parent
ab88755b00
commit
7aa93bf380
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,7 @@ sub post_upload {
|
|||
$validation->optional('purchase_time')->is_full_iso_datetime;
|
||||
$validation->optional('category')->in_resultset( 'id', $c->schema->resultset('Category'));
|
||||
$validation->optional('essential');
|
||||
$validation->optional('recurring');
|
||||
|
||||
# First pass of required items
|
||||
return $c->api_validation_error if $validation->has_error;
|
||||
|
@ -186,6 +187,7 @@ sub post_upload {
|
|||
my $file = defined $upload ? $c->store_file_from_upload( $upload ) : undef;
|
||||
my $category = $validation->param('category');
|
||||
my $essential = $validation->param('essential');
|
||||
my $recurring_type = $validation->('recurring');
|
||||
my $distance = $c->get_distance_from_coords( $user->entity->type_object, $organisation );
|
||||
|
||||
my $new_transaction = $organisation->entity->create_related(
|
||||
|
|
Reference in a new issue