'attribute' => 'price', | 'attribute' => 'price', | ||||
'value' => function($model) { | 'value' => function($model) { | ||||
if($model->price) { | if($model->price) { | ||||
return Price::format($model->price).' ('.Product::strUnit($model->unit, 'wording_unit', true).')' ; | |||||
return Price::format($model->getPriceWithTax()).' ('.Product::strUnit($model->unit, 'wording_unit', true).')' ; | |||||
} | } | ||||
return '' ; | return '' ; | ||||
} | } |