<%= form_tag transactions_order_reservations_path, :method => :get do %>

<% end %>
<% discount_amount = 0.0 delivery_fee = 0.0 convenience_charge = 0.0 delivery_tax = 0.0 convenience_tax = 0.0 commercial_tax = 0.0 %> <% if @order_reservations != 0 %> <% @order_reservations.each do |order_reservation| %> <% provider = "" discount_amount = order_reservation.discount_amount delivery_fee = order_reservation.delivery_fee ? order_reservation.delivery_fee : 0.0 convenience_charge = order_reservation.convenience_charge if !JSON.parse(order_reservation.taxes).nil? && !JSON.parse(order_reservation.taxes).empty? JSON.parse(order_reservation.taxes).each do |tax_data| if tax_data[0] == "delivery_tax" delivery_tax = tax_data[1] elsif tax_data[0] == "convenience_tax" convenience_tax = tax_data[1] elsif tax_data[0] == "commercial_tax" commercial_tax = tax_data[1] end end end %> <% if order_reservation.provider == 'pick_up' provider = "Pick-Up" elsif order_reservation.provider == 'direct_delivery' provider = "Direct Delivery" elsif order_reservation.provider == 'turbo' provider = "TURBO" else provider = order_reservation.provider end %> <% end %> <% else %> <% end %>
<%= t("views.right_panel.detail.order_reservation_id") %> <%= t("views.right_panel.detail.sale_id") %> <%= t("views.right_panel.detail.type") %> <%= t("views.right_panel.detail.requested_time") %> <%= t("views.right_panel.detail.provider") %> <%= t("views.right_panel.detail.status") %> <%= t :payment_method %> <%= t :payment %> <%= t("views.right_panel.detail.status")%> <%= t("views.right_panel.detail.sub_total") %> <%= t("views.right_panel.detail.discount_amount") %> <%= t("views.right_panel.detail.delivery_fee") %> <%= t("views.right_panel.detail.convenience_charge") %> <%= t("views.right_panel.detail.total") %> <%= t("views.right_panel.detail.tax") %> <%= t("views.right_panel.detail.grand_total") %> <%= t("views.right_panel.detail.transaction_fee") %>
<%= link_to order_reservation.order_reservation_id, transactions_order_reservation_path(order_reservation) %> <%= link_to order_reservation.sale_id, transactions_sale_path(order_reservation.sale_id) rescue '-' %> <%= order_reservation.order_reservation_type %> <%= order_reservation.requested_time.utc.getlocal.strftime("%Y-%m-%d %I:%M %p") %> <%= provider%> <%= order_reservation.status %> <%= order_reservation.payment_type%> <%= order_reservation.payment_status%> <%= number_format(order_reservation.total_amount, precision:precision.to_i, delimiter:delimiter) rescue '0.0'%> <%= number_format(discount_amount , precision:precision.to_i, delimiter:delimiter) rescue '0.0'%> <%= number_format(delivery_fee , precision:precision.to_i, delimiter:delimiter) rescue '0.0'%> <%= number_format(convenience_charge , precision:precision.to_i, delimiter:delimiter) rescue '0.0'%> <%= number_format(order_reservation.total_tax , precision:precision.to_i, delimiter:delimiter) rescue '0.0'%> <%= number_format(order_reservation.grand_total , precision:precision.to_i, delimiter:delimiter) rescue '0.0' %> <%= number_format(order_reservation.transaction_fee , precision:precision.to_i, delimiter:delimiter) rescue '0.0' %>

There is no data for search....


<% if @order_reservations != 0 %> <%= paginate @order_reservations %> <% end %>