Quota row management - copy quota rows with recalculating quota

This commit is contained in:
gediminasm committed 2010-03-08 20:55:25 +00:00
1 parent f9d528c0df
commit 6dcf9168e0
3 files changed
+103 -9

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ if ($questionnaire_id)
else
{
$completions = limesurvey_quota_completions($v['lime_sgqa'],$v['lime_sid'],$questionnaire_id,$sample_import_id,$v['value'],$v['comparison']);
$perc = ROUND(($completions / ($v['completions'])) * 100,2);
$perc = ($v['completions'] <= 0 ? 0 : ROUND(($completions / ($v['completions'])) * 100,2));
}
//We need to calc Sample size, Sample drawn, Sample remain