Update Reort
This commit is contained in:
@@ -47,8 +47,12 @@ class Api::OrdersController < Api::ApiController
|
|||||||
# end
|
# end
|
||||||
|
|
||||||
@shop = Shop.first
|
@shop = Shop.first
|
||||||
|
puts "Hello world"
|
||||||
|
puts @shop.to_json
|
||||||
|
return @shop.to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# Description
|
# Description
|
||||||
# This API allow new order creation
|
# This API allow new order creation
|
||||||
# Input Params
|
# Input Params
|
||||||
|
|||||||
@@ -31,34 +31,34 @@
|
|||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.date") %></th>
|
<th style='text-align:center;'><%= t("views.right_panel.detail.date") %></th>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.void_amount") %></th>
|
<th style='text-align:center;'><%= t("views.right_panel.detail.void_amount") %></th>
|
||||||
<% if @payment_methods.include? ("MPU") %>
|
<% if @payment_methods.include? ("MPU") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.mpu_sales") %></th>
|
<th style='text-align:center;' class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.mpu_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("Master") %>
|
<% if @payment_methods.include? ("Master") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.master_sales") %></th>
|
<th style='text-align:center;' class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.master_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("VISA") %>
|
<% if @payment_methods.include? ("VISA") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.visa_sales") %></th>
|
<th style='text-align:center;'class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.visa_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("JCB") %>
|
<% if @payment_methods.include? ("JCB") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.jcb_sales") %></th>
|
<th style='text-align:center;'class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.jcb_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("UNIONPAY") %>
|
<% if @payment_methods.include? ("UNIONPAY") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.unionpay_sales") %></th>
|
<th style='text-align:center;' class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.unionpay_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("Alipay") %>
|
<% if @payment_methods.include? ("Alipay") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.alipay_sales") %></th>
|
<th style='text-align:center;' class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.alipay_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("PAYMAL") %>
|
<% if @payment_methods.include? ("PAYMAL") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.paymal_sales") %></th>
|
<th style='text-align:center;' class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.paymal_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("DINGA") %>
|
<% if @payment_methods.include? ("DINGA") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.dinga_sales") %></th>
|
<th style='text-align:center;' class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.dinga_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("JunctionPay") %>
|
<% if @payment_methods.include? ("JunctionPay") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.junctionpay_sales") %></th>
|
<th style='text-align:center;' class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.junctionpay_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("Redeem") %>
|
<% if @payment_methods.include? ("Redeem") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.redeem_sales") %></th>
|
<th style='text-align:center;' class="d-none d-sm-table-cell"><%= t("views.right_panel.detail.redeem_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.cash_sales") %></th>
|
<th style='text-align:center;'><%= t("views.right_panel.detail.cash_sales") %></th>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.credit_sales") %></th>
|
<th style='text-align:center;'><%= t("views.right_panel.detail.credit_sales") %></th>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.date") %></th>
|
<th style='text-align:center;'><%= t("views.right_panel.detail.date") %></th>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.void_amount") %></th>
|
<th style='text-align:center;'><%= t("views.right_panel.detail.void_amount") %></th>
|
||||||
<% if @payment_methods.include? ("MPU") %>
|
<% if @payment_methods.include? ("MPU") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.mpu_sales") %></th>
|
<th style='text-align:center;' class='mobile'><%= t("views.right_panel.detail.mpu_sales") %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @payment_methods.include? ("Master") %>
|
<% if @payment_methods.include? ("Master") %>
|
||||||
<th style='text-align:center;'><%= t("views.right_panel.detail.master_sales") %></th>
|
<th style='text-align:center;'><%= t("views.right_panel.detail.master_sales") %></th>
|
||||||
|
|||||||
@@ -54,8 +54,8 @@
|
|||||||
<th><%= t("views.right_panel.detail.cash_payment") %></th>
|
<th><%= t("views.right_panel.detail.cash_payment") %></th>
|
||||||
<!-- <th>Credit Charges</th> -->
|
<!-- <th>Credit Charges</th> -->
|
||||||
<th><%= t("views.right_panel.detail.credit_payment") %></th>
|
<th><%= t("views.right_panel.detail.credit_payment") %></th>
|
||||||
<th><%= t("views.btn.other_payment") %></th>
|
<th class="d-none d-sm-table-cell"><%= t("views.btn.other_payment") %></th>
|
||||||
<th><%= t("views.btn.foc") %> <%= t :payment %></th>
|
<th class="d-none d-sm-table-cell"><%= t("views.btn.foc") %> <%= t :payment %></th>
|
||||||
<!-- <th>Grand Total
|
<!-- <th>Grand Total
|
||||||
<br/>Rounding Adj</th> -->
|
<br/>Rounding Adj</th> -->
|
||||||
<!-- <th>Rounding Adj</th> -->
|
<!-- <th>Rounding Adj</th> -->
|
||||||
|
|||||||
Reference in New Issue
Block a user