Revision c23b1062
Von Bernd Bleßmann vor fast 10 Jahren hinzugefügt
SL/Controller/AccTrans.pm | ||
---|---|---|
5 | 5 |
|
6 | 6 |
__PACKAGE__->run_before('check_auth'); |
7 | 7 |
|
8 |
sub action_list_transactions {
|
|
9 |
my ($self) = @_;
|
|
8 |
sub action_list_transactions { |
|
9 |
my ($self) = @_; |
|
10 | 10 |
|
11 | 11 |
return $self->render('generic/error', { layout => 0 }, label_error => "list_transactions needs a trans_id") unless $::form->{trans_id}; |
12 | 12 |
|
13 |
my $transactions = SL::DB::Manager::AccTransaction->get_all(query => [ trans_id => $::form->{trans_id} ], sort_by => 'acc_trans_id ASC');
|
|
13 |
my $transactions = SL::DB::Manager::AccTransaction->get_all(query => [ trans_id => $::form->{trans_id} ], sort_by => 'acc_trans_id ASC'); |
|
14 | 14 |
|
15 | 15 |
return $self->render(\'', { type => 'json' }) unless scalar @{$transactions}; |
16 | 16 |
|
17 | 17 |
my $acc_trans_table = $self->_mini_ledger($transactions); |
18 | 18 |
my $balances_table = $self->_mini_trial_balance($transactions); |
19 |
|
|
19 |
|
|
20 | 20 |
return $self->render('acc_trans/acc_trans', { header => 0 }, acc_trans_table => $acc_trans_table, balances_table => $balances_table); |
21 | 21 |
} |
22 | 22 |
|
Auch abrufbar als: Unified diff
trailing whitespaces entfernt