So i have a script like this...
public function stock ()
{
$crud = new grocery_CRUD();
$crud->set_theme('flexigrid');
$crud->set_table('stock');
$crud->columns('no','keterangan','qtyStock','priceStock','totalStock','qtyIn','priceIN','totalIn','qtyOut','priceOut','totalOut','qtySaldo','priceSaldo',totalSaldo');
$crud->fields(('no','keterangan','qtyStock','priceStock','totalStock','qtyIn','priceIN','totalIn','qtyOut','priceOut','totalOut','qtySaldo','priceSaldo',totalSaldo');
);
$output = $crud->render();
$this->_example_output($output);
}
and the issue is i want to edit the field with a arithmetic value.. l
example..
when i input data on totalStock, it will automaticaly have a function qtyStock */(multiplication) priceStock = totalStock and same with totalIn, totalOut and totalSaldo..
how do i do that??