update receipt no twice and sale order double and report changes

This commit is contained in:
Aung Myo
2017-07-31 09:39:34 +06:30
parent 78d383f5ec
commit 6ac35bb874
3 changed files with 12 additions and 12 deletions

View File

@@ -31,8 +31,8 @@
<% end %>
<% if @shift_from %>
<tr>
<% if @shift.cashier_id %>
<% cashier_name = !@shift.nil? ? @shift.employee.name : '-' %>
<% if @shift %>
<% cashier_name = !@shift.nil? ? @shift[0].employee.name : '-' %>
<% end %>
<th colspan="3">Shift Name = <%= @shift_from rescue '-'%> - <%= @shift_to rescue '-'%> ( <%= cashier_name rescue '-'%> )</th>
</tr>