Resolve "Superficial UAT changes for release" #864
13 changed files with 27 additions and 33 deletions
|
|
@ -25,7 +25,6 @@ class Customer
|
|||
// title
|
||||
/**
|
||||
* @ORM\Column(type="string", length=80)
|
||||
* @Assert\NotBlank()
|
||||
*/
|
||||
protected $title;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,16 +7,18 @@ class JOStatus extends NameValue
|
|||
const PENDING = 'pending';
|
||||
const RIDER_ASSIGN = 'rider_assign';
|
||||
const ASSIGNED = 'assigned';
|
||||
const IN_TRANSIT = 'in_transit';
|
||||
const IN_PROGRESS = 'in_progress';
|
||||
const CANCELLED = 'cancelled';
|
||||
const FULFILLED = 'fulfilled';
|
||||
|
||||
const COLLECTION = [
|
||||
'pending' => 'Pending',
|
||||
'pending' => 'For Dispatch',
|
||||
'rider_assign' => 'For Rider Assignment',
|
||||
'assigned' => 'Assigned',
|
||||
'in_transit' => 'In Transit',
|
||||
'in_progress' => 'In Progress',
|
||||
'cancelled' => 'Cancelled',
|
||||
'fulfilled' => 'Fulfilled',
|
||||
'fulfilled' => 'Completed',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,6 @@ class ModeOfPayment extends NameValue
|
|||
'cash' => 'Cash',
|
||||
'credit_card' => 'Credit Card',
|
||||
'debit_card' => 'Debit Card',
|
||||
'installment' => 'Installment',
|
||||
'installment' => 'Installment - BDO',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,13 +14,13 @@ class ServiceType extends NameValue
|
|||
const EMERGENCY_REFUEL = 'fuel';
|
||||
|
||||
const COLLECTION = [
|
||||
'battery_new' => 'Battery Replacement (New)',
|
||||
'battery_warranty' => 'Battery Replacement (Under Warranty)',
|
||||
'battery_new' => 'Battery Sales',
|
||||
'battery_warranty' => 'Under Warranty',
|
||||
'jumpstart_troubleshoot' => 'General Service',
|
||||
'post_recharged' => 'Post - Recharged',
|
||||
'post_replacement' => 'Post - Replacement',
|
||||
'tire' => 'Tire Repair',
|
||||
'tire' => 'Flat Tire',
|
||||
'overheat' => 'Overheat Assistance',
|
||||
'fuel' => 'Emergency Refuel',
|
||||
'fuel' => 'Fuel',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@ namespace App\Ramcar;
|
|||
|
||||
class TradeInType extends NameValue
|
||||
{
|
||||
const MOTOLITE = 'motolite';
|
||||
const OTHER = 'other';
|
||||
const PREMIUM = 'premium';
|
||||
const MOTOLITE = 'motolite';
|
||||
const OTHER = 'other';
|
||||
|
||||
const COLLECTION = [
|
||||
'motolite' => 'Motolite',
|
||||
'premium' => 'Premium',
|
||||
'motolite' => 'Non-premium',
|
||||
'other' => 'Other',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,12 +7,14 @@ class TransactionOrigin extends NameValue
|
|||
const CALL = 'call';
|
||||
const ONLINE = 'online';
|
||||
const FACEBOOK = 'facebook';
|
||||
const VIP = 'vip';
|
||||
const MOBILE_APP = 'mobile_app';
|
||||
|
||||
const COLLECTION = [
|
||||
'call' => 'Call',
|
||||
'call' => 'Hotline',
|
||||
'online' => 'Online',
|
||||
'facebook' => 'Facebook',
|
||||
'vip' => 'VIP',
|
||||
'mobile_app' => 'Mobile App',
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ class InvoiceCreator
|
|||
|
||||
public function getTradeInRate($trade_in)
|
||||
{
|
||||
// TODO: modify this with the prices based on size
|
||||
if ($trade_in == 'motolite')
|
||||
return self::TIRATE_MOTOLITE;
|
||||
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@
|
|||
<div class="form-control-feedback hide" data-field="battery"></div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<label for="battery-warranty-code" data-field="warranty_code">Warranty Code</label>
|
||||
<label for="battery-warranty-code" data-field="warranty_code">Serial Number</label>
|
||||
<input type="text" name="warranty_code" id="battery-warranty-code" class="form-control m-input" data-required="0">
|
||||
<div class="form-control-feedback hide" data-field="warranty_code"></div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@
|
|||
<div class="form-control-feedback hide" data-field="current_battery"></div>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<label data-field="warranty_code">Warranty Code</label>
|
||||
<label data-field="warranty_code">Serial Number</label>
|
||||
<input type="text" name="warranty_code" id="warranty-code" class="form-control m-input" value="{{ obj.getCustomerVehicle ? obj.getCustomerVehicle.getWarrantyCode }}" data-vehicle-field="1" disabled>
|
||||
<div class="form-control-feedback hide" data-field="warranty_code"></div>
|
||||
</div>
|
||||
|
|
@ -282,12 +282,12 @@
|
|||
<div class="form-group m-form__group row">
|
||||
<div class="col-lg-6">
|
||||
<label data-field="tier1_notes">Tier 1 Notes</label>
|
||||
<textarea name="tier1_notes" class="form-control m-input" rows="4">{{ obj.getTier1Notes }}</textarea>
|
||||
<textarea name="tier1_notes" class="form-control m-input" rows="15">{{ obj.getTier1Notes }}</textarea>
|
||||
<div class="form-control-feedback hide" data-field="tier1_notes"></div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<label data-field="tier2_notes">Tier 2 Notes</label>
|
||||
<textarea name="tier2_notes" class="form-control m-input" rows="4">{{ obj.getTier2Notes }}</textarea>
|
||||
<textarea name="tier2_notes" class="form-control m-input" rows="15">{{ obj.getTier2Notes }}</textarea>
|
||||
<div class="form-control-feedback hide" data-field="tier2_notes"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -528,8 +528,10 @@
|
|||
<tr>
|
||||
<th>Hub</th>
|
||||
<th>Branch</th>
|
||||
<!--
|
||||
<th class="text-right">Distance</th>
|
||||
<th class="text-right">Travel Time</th>
|
||||
-->
|
||||
<th class="text-right">Available Riders</th>
|
||||
<th class="text-right">Jobs For Assignment</th>
|
||||
<th>Contact Numbers</th> </tr>
|
||||
|
|
@ -545,11 +547,13 @@
|
|||
<tr data-lat="{{ hub.hub.getCoordinates.getLatitude }}" data-lng="{{ hub.hub.getCoordinates.getLongitude }}" data-id="{{ hub.hub.getID }}"{{ obj.getHub and obj.getHub.getID == hub.hub.getID ? ' class="m-table__row--primary"' }}>
|
||||
<td>{{ hub.hub.getName }}</td>
|
||||
<td>{{ hub.hub.getBranch }}</td>
|
||||
<!--
|
||||
<td class="text-right">{{ hub.distance ? hub.distance : '-' }}</td>
|
||||
<td class="text-right">{{ hub.duration ? hub.duration : '-' }}</td>
|
||||
-->
|
||||
<td class="text-right">{{ hub.rider_count }}</td>
|
||||
<td class="text-right">{{ hub.jo_count }}</td>
|
||||
<td>{{ hub.hub.getContactNumbers }}</td>
|
||||
<td>{{ hub.hub.getContactNumbers|replace({"\n": ', '}) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -97,10 +97,6 @@
|
|||
field: 'processor',
|
||||
title: 'Dispatcher'
|
||||
},
|
||||
{
|
||||
field: 'assignor',
|
||||
title: 'Assignor'
|
||||
},
|
||||
{
|
||||
field: 'Actions',
|
||||
width: 110,
|
||||
|
|
|
|||
|
|
@ -97,10 +97,6 @@
|
|||
field: 'processor',
|
||||
title: 'Dispatcher'
|
||||
},
|
||||
{
|
||||
field: 'assignor',
|
||||
title: 'Assignor'
|
||||
},
|
||||
{
|
||||
field: 'Actions',
|
||||
width: 110,
|
||||
|
|
|
|||
|
|
@ -97,10 +97,6 @@
|
|||
field: 'processor',
|
||||
title: 'Dispatcher'
|
||||
},
|
||||
{
|
||||
field: 'assignor',
|
||||
title: 'Assignor'
|
||||
},
|
||||
{
|
||||
field: 'Actions',
|
||||
width: 110,
|
||||
|
|
|
|||
|
|
@ -97,10 +97,6 @@
|
|||
field: 'processor',
|
||||
title: 'Dispatcher'
|
||||
},
|
||||
{
|
||||
field: 'assignor',
|
||||
title: 'Assignor'
|
||||
},
|
||||
{
|
||||
field: 'Actions',
|
||||
width: 110,
|
||||
|
|
|
|||
Loading…
Reference in a new issue