show location code in client list
This commit is contained in:
@@ -10,7 +10,7 @@ class BatchLineItemsController < ApplicationController
|
|||||||
@clients=Client.all.order('id desc')
|
@clients=Client.all.order('id desc')
|
||||||
@product_categories=ProductCategory.all.order('id desc')
|
@product_categories=ProductCategory.all.order('id desc')
|
||||||
|
|
||||||
find_client=Client.select(:id).order('id desc').first
|
find_client=Client.select(:id).order('id desc').last
|
||||||
if !find_client.nil?
|
if !find_client.nil?
|
||||||
client_id=find_client.id
|
client_id=find_client.id
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
<th>Email</th>
|
<th>Email</th>
|
||||||
<th>Phone</th>
|
<th>Phone</th>
|
||||||
<th>Address</th>
|
<th>Address</th>
|
||||||
|
<th>Location Code</th>
|
||||||
<th>Created At </th>
|
<th>Created At </th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -33,6 +34,7 @@
|
|||||||
<td><%= client.email rescue '' %></td>
|
<td><%= client.email rescue '' %></td>
|
||||||
<td><%= client.phone rescue '' %></td>
|
<td><%= client.phone rescue '' %></td>
|
||||||
<td><%= client.address rescue '' %></td>
|
<td><%= client.address rescue '' %></td>
|
||||||
|
<td><%= client.location_code rescue '' %></td>
|
||||||
<td><%= client.created_at.strftime("%e,%b %Y %I:%M %p") rescue '' %></td>
|
<td><%= client.created_at.strftime("%e,%b %Y %I:%M %p") rescue '' %></td>
|
||||||
<td>
|
<td>
|
||||||
<%= link_to 'Detail',
|
<%= link_to 'Detail',
|
||||||
|
|||||||
Reference in New Issue
Block a user