<?php

$customer_site_obj = [];
if (!empty($$class->ar_customer_site_id)) {
 $arc = new ar_customer_site();
 $arc_i = $arc->findBy_id($$class->ar_customer_site_id);
 array_push($customer_site_obj, $arc_i);
}

if (!empty($$class->ar_customer_id)) {
 $hr_employee_j = ar_customer::find_by_id($$class->ar_customer_id);
 $$class->customer_name = $hr_employee_j->customer_name;
 $$class->customer_number = $hr_employee_j->customer_number;
}


if (!empty($$class->admin_employee_id)) {
 $hr_employee_j = hr_employee::find_by_id($$class->admin_employee_id);
 $$class->admin_employee_name = $hr_employee_j->last_name . ' ,' . $hr_employee_j->first_name;
}

if ((!empty($$class->arproval_status)) && ($$class->arproval_status == 'CANCELLED')) {
 $mode = 2;
 $readonly = 1;
}
?>

