2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Quota row management - copy quota rows with recalculating quota

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

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