Skip to content

Commit

Permalink
Update Inspection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Dec 11, 2024
1 parent 2915929 commit bee06f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ public function inspections_pdf()
} else {
$data['result'] = 0;
}
$data['sec1score'] = round(100*($inspection->s1score_inspection / 112), -1);
$data['sec2score'] = round(100*($inspection->s2score_inspection / 62), -1);
$data['sec3score'] = round(100*($inspection->s3score_inspection / 16), -1);
$data['sec1score'] = round(100*abs($inspection->s1score_inspection / 112), -1);
$data['sec2score'] = round(100*abs($inspection->s2score_inspection / 62), -1);
$data['sec3score'] = round(100*abs($inspection->s3score_inspection / 16), -1);
$data['inspscore'] = $this->itindata_model->get_inspectionscore($id);
$data['inspectionid'] = $id;
$data['dynimg'] = $this->dynimg($id);
Expand Down

0 comments on commit bee06f2

Please sign in to comment.