Merge branch 'akaunting:master' into master
This commit is contained in:
commit
c6d0595fbb
@ -304,8 +304,19 @@ abstract class Report
|
||||
|
||||
public function setChartLabelFormatter()
|
||||
{
|
||||
$this->chart['bar']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter();
|
||||
$this->chart['donut']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter('percent');
|
||||
if (count($this->tables) > 1) {
|
||||
foreach ($this->tables as $table_key => $table) {
|
||||
if (empty($this->chart[$table_key])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->chart[$table_key]['bar']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter();
|
||||
$this->chart[$table_key]['donut']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter('percent');
|
||||
}
|
||||
} else {
|
||||
$this->chart['bar']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter();
|
||||
$this->chart['donut']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter('percent');
|
||||
}
|
||||
}
|
||||
|
||||
public function setYear()
|
||||
|
@ -5,8 +5,7 @@
|
||||
@include($class->views['summary.content.header'])
|
||||
|
||||
@foreach($class->tables as $table_key => $table_name)
|
||||
<div
|
||||
class="flex flex-col lg:flex-row mt-12">
|
||||
<div class="flex flex-col lg:flex-row mt-12">
|
||||
@include($class->views['summary.table'])
|
||||
|
||||
@if (! $is_print)
|
||||
|
Loading…
x
Reference in New Issue
Block a user