Fix undefined offset
This commit is contained in:
parent
04d9fe30eb
commit
d51ca23bb4
1 changed files with 9 additions and 7 deletions
|
|
@ -368,13 +368,15 @@
|
|||
<?php
|
||||
|
||||
$summary = [];
|
||||
$summary[] = array_merge([
|
||||
trans("texts.totals")
|
||||
], array_map(function ($key) {
|
||||
return ['text' => trans("texts.{$key}"),
|
||||
'style' => 'tableHeader'
|
||||
];
|
||||
}, array_keys(array_values(array_values($reportTotals)[0])[0])));
|
||||
if(count(array_values($reportTotals))) {
|
||||
$summary[] = array_merge([
|
||||
trans("texts.totals")
|
||||
], array_map(function ($key) {
|
||||
return ['text' => trans("texts.{$key}"),
|
||||
'style' => 'tableHeader'
|
||||
];
|
||||
}, array_keys(array_values(array_values($reportTotals)[0])[0])));
|
||||
}
|
||||
|
||||
foreach ($reportTotals as $currencyId => $each) {
|
||||
foreach ($each as $dimension => $val) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue