name = 'currency_id'; $currency_id->delete($df); } function save($df){ //the currency field $this->default = unformat_number($this->default); $this->default_value = $this->default; parent::save($df); //currency id $currency_id = new TemplateCurrencyId(); $currency_id->name = 'currency_id'; $currency_id->vname = 'LBL_CURRENCY'; $currency_id->label = $currency_id->vname; $currency_id->save($df); //$df->addLabel($currency_id->vname); } function get_db_type() { $precision = (!empty($this->precision)) ? $this->precision : 6; $len = (!empty($this->len)) ? $this->len:26; return " ".sprintf($GLOBALS['db']->getColumnType("decimal_tpl"), $len, $precision); } }