Skip to content

Commit

Permalink
Update Inspection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Aug 25, 2024
1 parent 07e671f commit 613cf9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ public function pdftest($inspid=null)
$data['inspection'] = $inspections[0];
$data['inspremark'] = $this->itindata_model->get_inspectionremarks($id);
$inspection = $inspections[0];
echo $score1;

$score1 = $inspection->s1score_inspection;
$score2 = $inspection->s2score_inspection;
$score3 = $inspection->s3score_inspection;
Expand All @@ -1155,6 +1155,7 @@ public function pdftest($inspid=null)
$data['result'] = 0;
}
$data['sec1score'] = round(100*($inspection->s1score_inspection / 112), -1);
echo $score1;
echo $data['sec1score'];
$data['sec2score'] = round(100*($inspection->s2score_inspection / 62), -1);
$data['sec3score'] = round(100*($inspection->s3score_inspection / 16), -1);
Expand Down

0 comments on commit 613cf9e

Please sign in to comment.