It looks like you're new here. If you want to get involved, click one of these buttons!
class Leads_model extends Base_module_model {
...
function form_fields($values = array(), $related = array()){
$fields = parent::form_fields($values, $related);
$fields['cost'] = array('type' => 'number', 'negative' => TRUE, 'decimal' => TRUE);
return $fields;
}
class Orders extends Fuel_base_controller {
...
$leads = $this->leads_model->find_all(array('order_id' => $id));
echo $leads[0]->cost;
die();
Produces: 30
Comments
https://github.com/daylightstudio/FUEL-CMS/commit/353746e4d8e5ae2c75905bd2cc62ba7574fede13
That fixed the problem.
Much thanks.