fixing check_default, setting info_percent to 100, when status is done or billed

This commit is contained in:
Klaus Leithoff 2009-04-27 12:54:40 +00:00
parent a8bf31c274
commit bd3e6ca818

View File

@ -583,7 +583,7 @@ class infolog_bo
} }
if (in_array($values['info_status'],array('done','billed'))) if (in_array($values['info_status'],array('done','billed')))
{ {
$values['info_percent'] == '100%'; $values['info_percent'] = '100';
} }
if ((int)$values['info_percent'] == 100 && !in_array($values['info_status'],array('done','billed','cancelled'))) if ((int)$values['info_percent'] == 100 && !in_array($values['info_status'],array('done','billed','cancelled')))
{ {