Skip to content

manipulating "showTotal" output view #73

Closed
@mer30hamid

Description

@mer30hamid

I have a column that contains Total times in Minutes (it has int type) that I want to convert it to "H:i" format,
I can do it using "displayAs" but only for editColumns, for example:

            return $ExcelReport->of($title, $meta, $queryBuilder, $columns)
                ->editColumns(
                     ['Total times'],
                    ['displayAs' => function($result) {
                        return gmdate("H:i", $result->totalTimes);
                    }])
                ->groupBy('Customer Name')
                ->showTotal([ 
                    'Total times' => 'point' 
                ])
                ->make()
                ->download('CustomerServiceReport.xlsx');

image

but I can't find any way to manipulate "showTotal" (Grand Total) output view
Is it possible to use "displayAs" for it? any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions