$first = AutoMaker::table("fields")->select('field_name')->run;
return AutoMaker::table("transactions")
->join('routes')
->selectRaw('routes.route_name,routes.route_no,
sum(transactions.net_amount) as net_amount,
sum(transactions.vat_amount) as vat_amount,
sum(transactions.discount) as discount,
sum(transactions.total_amount) total,
sum(transactions.max_factor_qty) qty
')
->where('transactions.status', 3)
->where('transactions.transaction_type', '!=',2)
->orderBy('total','desc')
->groupBy('route_id')
->union($first)
->run();
when I run this query getting
Message: Undefined property: koolreport\core\DataStore::$type
Line: 344
File: demo3\vendor\koolreport\querybuilder\SQL.php
so how could I solve this? any help, please