Magento admin form not saving the decimal values with decimal -
for 1 of custom module have following sql setup script
$installer = $this; $installer->startsetup(); $installer->run(" create table {$this->gettable('wholesale')} ( `wholesale_id` int(11) unsigned not null auto_increment, `title` varchar(255) not null default '', `percentage` float(5,3) not null, `status` smallint(6) not null default '0', `created_time` datetime null, `update_time` datetime null, primary key (`wholesale_id`) ) engine=innodb default charset=utf8; "); $installer->endsetup();
the value passed percentage` float(5,3) not null, column saving decimal 00 example. if save value 10.23 save in database 10.00.
please help
i ran same issue. after clearing cache "flush magento cache", started save properly. in case, had altered column , being cached.
Comments
Post a Comment