Revision 961bd689
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
SL/Controller/CustomerVendorTurnover.pm | ||
---|---|---|
8 | 8 |
use SL::DB::EmailJournal; |
9 | 9 |
use SL::DB::Letter; |
10 | 10 |
use SL::DB; |
11 |
use SL::JSON qw(to_json); |
|
11 | 12 |
|
12 | 13 |
__PACKAGE__->run_before('check_auth'); |
13 | 14 |
|
... | ... | |
151 | 152 |
ORDER BY $order_by |
152 | 153 |
SQL |
153 | 154 |
$self->{turnover_statistic} = selectall_hashref_query($::form, $dbh, $query, $cv); |
154 |
$self->render('customer_vendor_turnover/count_turnover', { layout => 0 }); |
|
155 |
|
|
156 |
if ($::request->type eq 'json') { |
|
157 |
$self->render(\ SL::JSON::to_json($self->{turnover_statistic}), { layout => 0, type => 'json', process => 0 }); |
|
158 |
} else { |
|
159 |
$self->render('customer_vendor_turnover/count_turnover', { layout => 0 }); |
|
160 |
} |
|
155 | 161 |
} |
156 | 162 |
|
157 | 163 |
sub action_get_invoices { |
Auch abrufbar als: Unified diff
Kunden-/Lieferanten-Umsatzstatistik als Chart (chart.js)