update sale item xls
This commit is contained in:
@@ -54,8 +54,7 @@ class Reports::SaleitemController < BaseReportController
|
|||||||
@shift_data = sh
|
@shift_data = sh
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
respond_to do |format|
|
||||||
respond_to do |format|
|
|
||||||
format.html
|
format.html
|
||||||
format.xls
|
format.xls
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -108,12 +108,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<tr>
|
<tr>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<% if !cate_arr.include?(sale.menu_category_id) %>
|
|
||||||
<td><%= sale.menu_category_name %></td>
|
<td><%= sale.menu_category_name %></td>
|
||||||
<% cate_arr.push(sale.menu_category_id) %>
|
|
||||||
<% else %>
|
|
||||||
<td> </td>
|
|
||||||
<% end %>
|
|
||||||
<td><%= sale.item_code rescue '-' %></td>
|
<td><%= sale.item_code rescue '-' %></td>
|
||||||
<td><%= sale.product_name rescue '-' %></td>
|
<td><%= sale.product_name rescue '-' %></td>
|
||||||
<% if sale.status_type != "Discount" %>
|
<% if sale.status_type != "Discount" %>
|
||||||
@@ -143,13 +138,6 @@
|
|||||||
sub_qty += sale.total_item
|
sub_qty += sale.total_item
|
||||||
end %>
|
end %>
|
||||||
<% if count == value %>
|
<% if count == value %>
|
||||||
<tr>
|
|
||||||
<td colspan="3"> </td>
|
|
||||||
<td><b>Total <%= sale.account_name %> Qty </b> </td>
|
|
||||||
<td><b><%= sub_qty %></b></td>
|
|
||||||
<td><%= t("views.right_panel.detail.sub_total") %></td>
|
|
||||||
<td ><span class="underline"><%= number_with_precision(sub_total , precision:precision.to_i,delimiter:delimiter)%> </span></td>
|
|
||||||
</tr>
|
|
||||||
<% sub_total = 0.0%>
|
<% sub_total = 0.0%>
|
||||||
<% sub_qty = 0 %>
|
<% sub_qty = 0 %>
|
||||||
<% count = 0%>
|
<% count = 0%>
|
||||||
|
|||||||
@@ -21,11 +21,11 @@ class ActionController::Base
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
# check for license file
|
# check for license file
|
||||||
# if check_license
|
if check_license
|
||||||
# current_license(ENV["SX_PROVISION_URL"])
|
current_license(ENV["SX_PROVISION_URL"])
|
||||||
# else
|
else
|
||||||
# redirect_to activate_path
|
redirect_to activate_path
|
||||||
# end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
# application_path="#{File.expand_path("../..", __FILE__)}"
|
application_path="#{File.expand_path("../..", __FILE__)}"
|
||||||
# directory application_path
|
directory application_path
|
||||||
# #environment ENV.fetch("RAILS_ENV") { "production" }
|
#environment ENV.fetch("RAILS_ENV") { "production" }
|
||||||
# environment "production"
|
environment "production"
|
||||||
# pidfile "#{application_path}/tmp/puma/pid"
|
pidfile "#{application_path}/tmp/puma/pid"
|
||||||
# state_path "#{application_path}/tmp/puma/state"
|
state_path "#{application_path}/tmp/puma/state"
|
||||||
# stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
|
stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
|
||||||
# port ENV.fetch("PORT") { 62158 }
|
port ENV.fetch("PORT") { 62158 }
|
||||||
# workers 2
|
workers 2
|
||||||
# preload_app!
|
preload_app!
|
||||||
|
|||||||
Reference in New Issue
Block a user