Browse Source

fix report

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
0e2b2bb2f0
1 changed files with 2 additions and 32 deletions
  1. 2
    32
      app/Http/Controllers/Api/FormController.php

+ 2
- 32
app/Http/Controllers/Api/FormController.php View File

if(!empty($f->WorkOrder->Docket)){ if(!empty($f->WorkOrder->Docket)){
$woD = $f->WorkOrder->Docket->end_job; $woD = $f->WorkOrder->Docket->end_job;
$woRate = $f->WorkOrder->Docket->Rating1; $woRate = $f->WorkOrder->Docket->Rating1;
$amount_claim = $f->Subscriber->DealerClaim->total_claim;
// array_push($result,array(
// 'type_application' => $f->type_application,
// "type_service" => $f->type_service,
// "customer_name"=> $name,
// "contact_no"=> $contact_no,
// "unit_no"=>$f->Subscriber->unit_no,
// "building"=>$building,
// "street"=>$address,
// "submitted_date" => $f->created_at->toDateTimeString(),
// "package_contract" => $f->PackageDetail->contract,
// "package_name" => $f->PackageDetail->name,
// 'dealer' => $labelD,
// 'wo' => $woId,
// 'activated_date' => $woD,
// ));
// $amount_claim = $f->Subscriber->DealerClaim->total_claim;
} }
} }
// array_push($result,array(
// 'type_application' => $f->type_application,
// "type_service" => $f->type_service,
// "customer_name"=> $name,
// "contact_no"=> $contact_no,
// "unit_no"=>$f->Subscriber->unit_no,
// "building"=>$building,
// "street"=>$address,
// "submitted_date" => $f->created_at->toDateTimeString(),
// "package_contract" => $f->PackageDetail->contract,
// "package_name" => $f->PackageDetail->name,
// 'dealer' => $labelD,
// 'wo' => $woId,
// 'activated_date' => $woD,
// ));
array_push($result,array( array_push($result,array(
'Dealer Name' => $labelD, 'Dealer Name' => $labelD,
"Customer Name"=> $name, "Customer Name"=> $name,

Loading…
Cancel
Save