diff --git a/README.md b/README.md index ef68d0b7..5ff1aeda 100755 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ ruby 2.4.1p111 Campaign Id => {"campaign_type_id": 1} - +java -jar ~/Documents/Jade.jar http://192.168.1.88:3002 * ToDo list diff --git a/app/assets/javascripts/OQS.js b/app/assets/javascripts/OQS.js index 64e207ab..6068b53f 100755 --- a/app/assets/javascripts/OQS.js +++ b/app/assets/javascripts/OQS.js @@ -61,7 +61,7 @@ $(document).on('turbolinks:load', function() { if (data[field]["options"] == "[]" || data[field]["options"] == "") { var options = ""; }else{ - var options = data.options; + var options = data[field]["options"]; } var date = new Date(data[field]["created_at"]); @@ -80,7 +80,7 @@ $(document).on('turbolinks:load', function() { +' [x'+ data[field]["qty"] +'] ' +'
' - +'' + +'| Sub Total: | -<%= sub_total %> | +<%= sub_total %> | |||||||||||||||||||||||||||||||||||
| Rounding Adj: | - <%= @obj_sale.rounding_adjustment rescue 0 %> | + <%= @obj_sale.rounding_adjustment + %>||||||||||||||||||||||||||||||||||||
| Grand Total: | @@ -387,8 +390,12 @@ - - + + <%if @membership.discount && @obj_sale.customer.membership_id %> + + <%else%> + + <%end%> <% end %> @@ -398,11 +405,51 @@ <% else %> <% end %> + <%= @membership.discount%> + <%= @obj_sale.customer.membership_id rescue 0%> +|||||||||||||||||||||||||||||||||||||
| Rounding Adj: | -<%=@rounding_adj rescue 0%> | +<%= @sale_data.rounding_adjustment rescue 0%> | |||||||||||||||||||||||||||||||||||
| Grand Total | -<%=@sale_data.grand_total+ @rounding_adj rescue 0%> | +<%=@sale_data.grand_total rescue 0%> | |||||||||||||||||||||||||||||||||||
| Sub Total: | -<%= sub_total %> | +<%= sub_total %> | |||||||||
| <%= sale.grand_total rescue '-' %> | |||||||||||
| + | + | Total <%= sale.account_name %> Qty | +<%= sub_qty %> | <%= t("views.right_panel.detail.sub_total") %> | <%= sub_total %> | ||||||
| Other Charges | @@ -157,7 +163,7 @@ | <%= t("views.right_panel.detail.sub_total") %> | <%= other_sub_total %> | ||||||||
| @@ -291,12 +297,15 @@ function show_shift_name(period,period_type,from,to,shift_item){ var shift = $('#shift_name'); - + if (from == '' && to == '') { + from = $("#from").val(); + to = $("#to").val(); + } shift.empty(); var selected = ''; var str = ''; var param_shift = '<%= params[:shift_name]%>'; - + url = '<%= reports_get_shift_by_date_path %>'; $.get(url, {period :period, period_type :period_type, from :from, to :to, report_type :shift_item} , function(data){ console.log(data) diff --git a/app/views/reports/shiftsale/index.html.erb b/app/views/reports/shiftsale/index.html.erb index 2aeac1e5..8138007d 100755 --- a/app/views/reports/shiftsale/index.html.erb +++ b/app/views/reports/shiftsale/index.html.erb @@ -191,7 +191,10 @@ function show_shift_name(period,period_type,from,to,shift_item){ var shift = $('#shift_name'); - + if (from == '' && to == '') { + from = $("#from").val(); + to = $("#to").val(); + } shift.empty(); var str = ''; diff --git a/app/views/reports/void_sale/index.html.erb b/app/views/reports/void_sale/index.html.erb index 3bc48410..045df74d 100755 --- a/app/views/reports/void_sale/index.html.erb +++ b/app/views/reports/void_sale/index.html.erb @@ -144,7 +144,10 @@ function show_shift_name(period,period_type,from,to,shift_item){ var shift = $('#shift_name'); - + if (from == '' && to == '') { + from = $("#from").val(); + to = $("#to").val(); + } shift.empty(); var str = ''; diff --git a/app/views/settings/menu_categories/index.html.erb b/app/views/settings/menu_categories/index.html.erb index 870c19bc..8d8c044c 100755 --- a/app/views/settings/menu_categories/index.html.erb +++ b/app/views/settings/menu_categories/index.html.erb @@ -30,7 +30,7 @@ | <%= t("views.right_panel.detail.name") %> | <%= t("views.right_panel.detail.alt_name") %> | <%= t("views.right_panel.detail.is_available") %> | -<%= t("views.right_panel.detail.order_by") %> | +<%= t("views.right_panel.detail.parent") %> | <%= t("views.right_panel.detail.actions") %> | <%= link_to settings_menu_category.name, settings_menu_category_path(settings_menu_category) %> | <%= settings_menu_category.alt_name rescue ''%> | <%= settings_menu_category.is_available rescue false%> | -<%= settings_menu_category.order_by rescue ''%> | +<%= settings_menu_category.parent.name rescue ''%> | <%= link_to t("views.btn.edit"), edit_settings_menu_category_path(settings_menu_category),:class => 'btn btn-info btn-sm waves-effect' %> | @@ -51,8 +51,8 @@ <% end %>
|---|---|---|---|---|---|---|---|---|---|---|---|