"all" and "each" transaction mode distinction; added missing batch_processor view

This commit is contained in:
Florian "flowdy" Heß
2017-02-21 22:29:13 +01:00
parent df9c0b4065
commit f54f940f74
3 changed files with 252 additions and 142 deletions

View File

@@ -90,10 +90,11 @@ sub batch_processor {
;
open my $fh, '<', \$text;
require "$Bin/trsr" or die;
$self->app->db->storage->txn_do(sub {
Commands::act_on_other_db($self->app->db);
Commands::charge_account($fh);
});
Commands->import(
$self->app->db,
$self->param("txn-mode") // "all"
);
Commands::charge_account($fh);
$self->redirect_to('home');
}