resq/src/Entity/LegacyJobOrder.php

708 lines
16 KiB
PHP

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use DateTime;
/*
CSV column order:
0 - Internal ID
1 - Type
2 - Transaction Number
3 - Primary Information : Date of Transaction
4 - Primary Information : Job Order Number
5 - Primary Information : MEH : Transaction Type
6 - Primary Information : Reference JO Number
7 - Primary Information : Type of Service
8 - Primary Information : Warranty Status
9 - Primary Information : Transaction Origin
10 - Primary Information : Existing Battery
11 - Primary Information : Existing Battery Type
12 - Primary Information : Recommended Battery
13 - Primary Infromation : Alternative Battery
14 - Primary Information : Vehicle Plate Number
15 - Primary Information : Brand
16 - Primary Information : Make
17 - Primary Information : Model
18 - Primary Information : Vehicle Color
19 - Primary Information : Caller Name
20 - First Name
21 - Middle Name
22 - Last Name
23 - Primary Information : Caller Contact
24 - Primary Information : Caller Mobile No.
25 - Primary Information : Caller Landline No.
26 - Primary Information : Invoice / Company Name
27 - Primary Information : New Name?
28 - Primary Information : New Invoice / Company Name
29 - Primary Information : Delivery Instructions
30 - Primary Information : Agent Notes - Tier 1
31 - Primary Information : Delivery Date
32 - Primary Information : Delivery Time
33 - Primary Information : Advance Order
34 - Primary Information : Stages
35 - Primary Information : Reason for Cancellation
36 - Primary Information : Specify the Reason for Cancellation
37 - Primary Information : Payment Method
38 - Primary Information : Change for:
39 - Primary Information : Prepared by
40 - Current Battery Details : Serial No.:
41 - Current Battery Details : DR No.:
42 - Current Battery Details : Date of Replacement
43 - Current Battery Details : Battery Brand
44 - Current Battery Details : Type
45 - Current Battery Details : Issued By:
46 - Current Battery Details : Issued By Direct
47 - Original Battery Details : Serial No.
48 - Original Battery Details : OR No.:
49 - Original Battery Details : Date of Purchase
50 - Original Battery Details : Battery Brand:
51 - Original Battery Details : Battery Type:
52 - Original Battery Details : Purchased From:
53 - Original Battery Details : Purchase from Direct
54 - Original Battery Details : Current Warranty Expiration Date
55 - Original Battery Details : Trade-In Battery
56 - Dispatching : Agent Notes : Tier 2
57 - Dispatching : Notes (Customer Classification)
58 - Dispatching : Pending
59 - Dispatching : Pending - Awaiting Stocks
60 - Dispatching : Date started from Awaiting Stock
61 - Dispatching : 4TH Due
62 - Dispatching : 8TH Due
63 - Dispatching : 12TH Due
64 - Dispatching : 14TH Due
65 - Dispatching : Currently Assigned Enrollee
66 - Dispatching : Non-HUB?
67 - Dispatching : HUB Catered?
68 - Dispatching : Thru Annex?
69 - Dispatching : HUB List
70 - Dispatching : Annex List
71 - Dispatching : Exempted to 6%
72 - Dispatching : Rider Name List
73 - Dispatching : Rider Name
74 - Dispatching : Rider Contact Information
75 - DIspatching : Dispatch Time
76 - Dispatching : Dispatch Date
77 - Dispatching : Dispatched By
78 - Dispatching : Time of Arrival
79 - Dispatching : Time Job Completed
80 - Dispatching : For Line Up?
81 - DIspatching : Order
82 - Vehicle Location : Address
83 - Vehicle Location : Landmark
84 - Customer Service Record : Purchase Date
85 - Customer Service Record : Battery / Item
86 - Customer Service Record : Battery / Item Warranty in Months
87 - Customer Service Record : Warranty Inquiry (Expiration Date)
88 - JO : Amount
89 - JO : TAX
90 - JO : Discount
91 - JO : Final Amount
92 - Line Details : Item
93 - Line Details : Quantity
94 - Line Details : Item Rate
95 - Line Details : Price Level
96 - Line Details : Item Base Price
97 - Line Details : Price Level Amount Deductions
98 - Line Details : Final Amount
99 - Line Details : No Trade-In
100 - Line Details : Reason for No Trade-In
101 - Line Details : Battery Class
102 - Line Details : Discount Items
103 - Line Details : Discount Code
104 - Line Details : Percentage
105 - Line Details : Converted Rate
106 - Line Details : Discount Amount
107 - Line Details : Warranty Classification
108 - Line Details : Warranty in Months
109 - Line Details : Warranty Expiration Date
110 - Line Details : Serial Number
111 - Line Details : Invoice/DR Number
112 - Line Details : Repalcement
113 - Line Details : Employee / Card No. / Referred by
114 - Line Details : Amount
115 - Line Details : Gross Amount
116 - Line Details : Gross Amount
117 - Time Stamp : Date / Time (JO Open)
118 - Time Stamp : Date / Time JO Saved
119 - Time Stamp : Ticket Handle TIme (in mins)
120 - Time Stamp : Idle Time
121 - Time Stamp : Date and Time (Dispatched By)
122 - Time Stamp : In-Transit Date and Time
123 - TIme Stamp : Completion Date and TIme
124 - TIme Stamp : Dispatch By to In-Transit Time (Time difference in Mins)
125 - Time Stamp : In-Transit to Completed (Time difference in Mins)
126 - Time Stamp : Raw Ticket Handle TIme (Decimal)
127 - Time Stamp : Raw Idle Time (Decimal)
128 - Account
129 - Status
130 - Tracking Numbers
131 - Memo
132 - Posting
133 - Notes
134 - Originally Assigned Enrollee
135 - Remarks
136 - Follow Up Transactions
137 - CARD TYPE
138 - CARD NO.
139 - Ongoing Editing
140 - Current User
141 - Cancellation Date
142 - Cancellation Time
143 - Ticket Completion Date
144 - Ticket Completion Time
145 - Date Created
146 - Time Created
147 - PREVIOUS STAGE
148 - DISPATCHED BY EDITED?
149 - Previous Dispatched By
150 - POST SERVICE
151 - Pending (2)
152 - COMPLETED MANUALLY
153 - THRU HUB NOTE
154 - CURRENTLY ASSIGNED ENROLLEE (free-form)
155 - IN-TRANSIT ALLOWANCE
156 - COPY FROM JO #
157 - NO. OF POSSIBLE DUPLICATE
158 - Call Status
159 - DISTRIBUTOR OUTLETS
160 - CURRENTLY ASSIGNED ENROLLEE (free-form)
161 - HUB LIST
162 - HUB LIST 2
163 - Enrollee
164 - Currently Assigned Enrollee
165 - Payment:
*/
/**
* @ORM\Entity
* @ORM\Table(name="legacy_job_order")
*/
class LegacyJobOrder
{
// legacy internal id
/**
* @ORM\Id
* @ORM\Column(type="integer")
*/
protected $id;
/**
* @ORM\Column(type="date")
*/
protected $trans_date;
/**
* @ORM\Column(type="string", length=10)
*/
protected $trans_type;
/**
* @ORM\Column(type="string", length=30)
*/
protected $origin;
/**
* @ORM\Column(type="string", length=20)
*/
protected $car_brand;
/**
* @ORM\Column(type="string", length=50)
*/
protected $car_make;
/**
* @ORM\Column(type="string", length=20)
*/
protected $car_model;
/**
* @ORM\Column(type="string", length=40)
*/
protected $car_color;
/**
* @ORM\Column(type="string", length=90)
*/
protected $cust_name;
/**
* @ORM\Column(type="string", length=35)
*/
protected $cust_first_name;
/**
* @ORM\Column(type="string", length=15)
*/
protected $cust_middle_name;
/**
* @ORM\Column(type="string", length=35)
*/
protected $cust_last_name;
/**
* @ORM\Column(type="string", length=25)
*/
protected $cust_contact;
/**
* @ORM\Column(type="string", length=10)
*/
protected $cust_mobile;
/**
* @ORM\Column(type="string", length=25)
*/
protected $cust_landline;
/**
* @ORM\Column(type="string", length=2000)
*/
protected $delivery_instructions;
/**
* @ORM\Column(type="string", length=4000)
*/
protected $agent_notes_1;
/**
* @ORM\Column(type="string", length=10)
*/
protected $delivery_date;
/**
* @ORM\Column(type="string", length=10)
*/
protected $delivery_time;
/**
* @ORM\Column(type="string", length=3)
*/
protected $advance_order;
/**
* @ORM\Column(type="string", length=30)
*/
protected $stage;
/**
* @ORM\Column(type="string", length=40)
*/
protected $cancel_reason;
/**
* @ORM\Column(type="string", length=2000)
*/
protected $cancel_reason_specify;
/**
* @ORM\Column(type="string", length=30)
*/
protected $payment_method;
/**
* @ORM\Column(type="string", length=30)
*/
protected $prepared_by;
/**
* @ORM\Column(type="string", length=10)
*/
protected $dispatch_time;
/**
* @ORM\Column(type="string", length=10)
*/
protected $dispatch_date;
/**
* @ORM\Column(type="string", length=30)
*/
protected $dispatched_by;
/**
* @ORM\Column(type="string", length=200)
*/
protected $address;
/**
* @ORM\Column(type="string", length=320)
*/
protected $landmark;
/**
* @ORM\Column(type="string", length=10)
*/
protected $date_purchase;
/**
* @ORM\Column(type="string", length=20)
*/
protected $plate_number;
/**
* @ORM\OneToMany(targetEntity="LegacyJobOrderRow", mappedBy="job_order")
*/
protected $rows;
public function setID($id)
{
$this->id = $id;
return $this;
}
public function getID()
{
return $this->id;
}
public function setTransDate($trans_date)
{
$this->id = $trans_date;
return $this;
}
public function getTransDate()
{
return $this->trans_date;
}
public function setTransType($trans_type)
{
$this->trans_type = $trans_type;
return $this;
}
public function getTransType()
{
return $this->trans_type;
}
public function setOrigin($origin)
{
$this->origin = $origin;
return $this;
}
public function getOrigin()
{
return $this->origin;
}
public function setCarBrand($car_brand)
{
$this->car_brand = $car_brand;
return $this;
}
public function getCarBrand()
{
return $this->car_brand;
}
public function setCarMake($car_make)
{
$this->car_make = $car_make;
return $this;
}
public function getCarMake()
{
return $this->car_make;
}
public function setCarModel($car_model)
{
$this->car_model = $car_model;
return $this;
}
public function getCarModel()
{
return $this->car_model;
}
public function setCarColor($car_color)
{
$this->car_color = $car_color;
return $this;
}
public function getCarColor()
{
return $this->car_color;
}
public function setCustName($cust_name)
{
$this->cust_name = $cust_name;
return $this;
}
public function getCustName()
{
return $this->cust_name;
}
public function setCustFirstName($cust_first_name)
{
$this->cust_first_name = $cust_first_name;
return $this;
}
public function getCustFirstName()
{
return $this->cust_first_name;
}
public function setCustMiddleName($cust_middle_name)
{
$this->cust_middle_name = $cust_middle_name;
return $this;
}
public function getCustMiddleName()
{
return $this->cust_middle_name;
}
public function setCustLastName($cust_last_name)
{
$this->cust_last_name = $cust_last_name;
return $this;
}
public function getCustLastName()
{
return $this->cust_last_name;
}
public function setCustContact($cust_contact)
{
$this->cust_contact = $cust_contact;
return $this;
}
public function getCustContact()
{
return $this->cust_contact;
}
public function setCustMobile($cust_mobile)
{
$this->cust_mobile = $cust_mobile;
return $this;
}
public function getCustMobile()
{
return $this->cust_mobile;
}
public function setCustLandline($cust_landline)
{
$this->cust_landline = $cust_landline;
return $this;
}
public function getCustLandline()
{
return $this->cust_landline;
}
public function setDeliveryInstructions($delivery_instructions)
{
$this->delivery_instructions = $delivery_instructions;
return $this;
}
public function getDeliveryInstructions()
{
return $this->delivery_instructions;
}
public function setAgentNotes1($agent_notes_1)
{
$this->agent_notes_1 = $agent_notes_1;
return $this;
}
public function getAgentNotes1()
{
return $this->agent_notes_1;
}
public function setDeliveryDate($delivery_date)
{
$this->delivery_date = $delivery_date;
return $this;
}
public function getDeliveryDate()
{
return $this->delivery_date;
}
public function setDeliveryTime($delivery_time)
{
$this->delivery_time = $delivery_time;
return $this;
}
public function getDeliveryTime()
{
return $this->delivery_time;
}
public function setAdvanceOrder($advance_order)
{
$this->advance_order = $advance_order;
return $this;
}
public function getAdvanceOrder()
{
return $this->advance_order;
}
public function setStage($stage)
{
$this->stage = $stage;
return $this;
}
public function getStage()
{
return $this->stage;
}
public function setCancelReason($cancel_reason)
{
$this->cancel_reason = $cancel_reason;
return $this;
}
public function getCancelReason()
{
return $this->cancel_reason;
}
public function setCancelReasonSpecify($cancel_reason_specify)
{
$this->cancel_reason_specify = $cancel_reason_specify;
return $this;
}
public function getCancelReasonSpecify()
{
return $this->cancel_reason_specify;
}
public function setPaymentMethod($payment_method)
{
$this->payment_method = $payment_method;
return $this;
}
public function getPaymentMethod()
{
return $this->payment_method;
}
public function setPreparedBy($prepared_by)
{
$this->prepared_by = $prepared_by;
return $this;
}
public function getPreparedBy()
{
return $this->prepared_by;
}
public function setDispatchTime($dispatch_time)
{
$this->dispatch_time = $dispatch_time;
return $this;
}
public function getDispatchTime()
{
return $this->dispatch_time;
}
public function setDispatchDate($dispatch_date)
{
$this->dispatch_date = $dispatch_date;
return $this;
}
public function getDispatchDate()
{
return $this->dispatch_date;
}
public function setDispatchedBy($dispatched_by)
{
$this->dispatched_by = $dispatched_by;
return $this;
}
public function getDispatchedBy()
{
return $this->dispatched_by;
}
public function setAddress($address)
{
$this->address = $address;
return $this;
}
public function getAddress()
{
return $this->address;
}
public function setLandmark($landmark)
{
$this->landmark = $landmark;
return $this;
}
public function getLandmark()
{
return $this->landmark;
}
public function setDatePurchase($date_purchase)
{
$this->date_purchase = $date_purchase;
return $this;
}
public function getDatePurchase()
{
return $this->date_purchase;
}
public function setPlateNumber($plate_number)
{
$this->plate_number = $plate_number;
return $this;
}
public function getPlateNumber()
{
return $this->plate_number;
}
public function getRows()
{
return $this->rows;
}
}