Changed logic of storing recurring transactions
This commit is contained in:
parent
f5122630ea
commit
39c47a4983
21 changed files with 7702 additions and 17 deletions
|
@ -222,8 +222,13 @@ sub post_upload {
|
|||
|
||||
if ( defined $recurring_period ) {
|
||||
$c->schema->resultset('TransactionRecurring')->create({
|
||||
buyer => $user->entity,
|
||||
seller => $organisation->entity,
|
||||
value => $transaction_value * 100000,
|
||||
start_time => $c->format_db_datetime($purchase_time),
|
||||
essential => ( defined $essential ? $essential : 0 ),
|
||||
category_id => ( defined $category ? $category : undef ),
|
||||
recurring_period => $recurring_period,
|
||||
transaction_id => $new_transaction->id,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue