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 cb431e5 commit 07e671f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +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 @@ -1154,6 +1155,7 @@ public function pdftest($inspid=null)
$data['result'] = 0;
}
$data['sec1score'] = round(100*($inspection->s1score_inspection / 112), -1);
echo $data['sec1score'];
$data['sec2score'] = round(100*($inspection->s2score_inspection / 62), -1);
$data['sec3score'] = round(100*($inspection->s3score_inspection / 16), -1);
$data['inspscore'] = $this->itindata_model->get_inspectionscore($id);
Expand Down

0 comments on commit 07e671f

Please sign in to comment.