I have 2 tables called 'PO' and 'Agen'. Table PO have reference to Agen (agen_id attribute). When viewing in the gridview from index.php PO, i want to calculate $model->netto ($PO->netto) with $Agen->fee.
[
'class'=> 'kartik\grid\FormulaColumn',
'header' => 'Subtotal Fee Agen',
'value' => function($model){
//return var_dump($model);
return ($model->netto * fee);
},
'format'=>['decimal', 0],
'hAlign' => 'right'
],
I have still no luck with this. Unknown property error. Please advice. thanks before.