diff --git a/.idea/.generators b/.idea/.generators index 16189766..98526fe7 100644 --- a/.idea/.generators +++ b/.idea/.generators @@ -5,4 +5,4 @@ You are allowed to: 2. Remove generators 3. Add installed generators To add new installed generators automatically delete this file and reload the project. ---> +--> diff --git a/.idea/sxrestaurant.iml b/.idea/sxrestaurant.iml index 7db49a58..53fef9e5 100644 --- a/.idea/sxrestaurant.iml +++ b/.idea/sxrestaurant.iml @@ -65,7 +65,6 @@ - @@ -81,7 +80,7 @@ - + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e3687c57..705b1a97 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,20 +3,17 @@ + - - - - - - - - + + + + @@ -31,7 +28,7 @@ - + @@ -58,35 +55,61 @@ - - + + - - - - - + + + - - + + - - - - - + + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -95,61 +118,22 @@ - - + + - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -189,13 +173,8 @@ @@ -266,8 +250,8 @@ @@ -312,14 +296,22 @@ - - + + + + + + + + + + @@ -336,6 +328,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + <%= in_juty.dining_facility.name rescue '-' %> <%= in_juty.commissioner.name rescue '-' %> <%= in_juty.in_time.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") rescue '-' %> <%= in_juty.out_time.utc.getlocal.strftime("%Y-%m-%d/%I:%M %p") rescue '-' %> - <%= link_to 'Destroy', origami_destroy_in_juty_path(in_juty.dining_facility.id,in_juty),method: :delete, data: {confirm: 'Are you sure?'} %> + <%= link_to 'Destroy', origami_destroy_in_juty_path(in_juty.dining_facility.id, in_juty), method: :delete, data: {confirm: 'Are you sure?'} %> <% end %> <%= paginate @juties_in %> - +
- <%= render 'assign_in_juty', in_juty: @in_juty ,table: @table %> + <%= render 'assign_in_juty', in_juty: @in_juty, table: @table %>
- +
\ No newline at end of file + diff --git a/app/views/reports/commission/_commission_report_filter.html.erb b/app/views/reports/commission/_commission_report_filter.html.erb index acfcef25..b7ac154e 100644 --- a/app/views/reports/commission/_commission_report_filter.html.erb +++ b/app/views/reports/commission/_commission_report_filter.html.erb @@ -6,20 +6,31 @@
- + <% if @daterange %> + + <% else %> + + <% end %>
+
+ +
<% end %> @@ -35,21 +46,26 @@ placeholder: 'Select Commissioner' }); + $('#clear_filter').click(function () { + $('#daterange').val(''); + $('#commissioner').val('').text(''); + }); + $('input[name="daterange"]').daterangepicker({ - autoUpdateInput: false, - ranges: { - 'Today': [moment(), moment()], - 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], - 'Last 7 Days': [moment().subtract(6, 'days'), moment()], - 'Last 30 Days': [moment().subtract(29, 'days'), moment()], - 'This Month': [moment().startOf('month'), moment().endOf('month')], - 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] + autoUpdateInput: false, + ranges: { + 'Today': [moment(), moment()], + 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], + 'Last 7 Days': [moment().subtract(6, 'days'), moment()], + 'Last 30 Days': [moment().subtract(29, 'days'), moment()], + 'This Month': [moment().startOf('month'), moment().endOf('month')], + 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] + }, + locale: { + format: 'YYYY-MM-DD' + } }, - locale: { - format: 'YYYY-MM-DD' - } - }, - function(start, end, label) { + function (start, end, label) { $('input[name="daterange"]').val(start.format('YYYY-MM-DD') + ' - ' + end.format('YYYY-MM-DD')); }); diff --git a/app/views/settings/promotions/new.html.erb b/app/views/settings/promotions/new.html.erb index c7748bb6..321aa4d1 100644 --- a/app/views/settings/promotions/new.html.erb +++ b/app/views/settings/promotions/new.html.erb @@ -13,5 +13,4 @@ $("#promotion_promo_code").val(Math.random().toString(36).slice(5) + Math.random().toString(36).slice(5)); // $( "#fromtime" ).timepicker(); // $( "#totime" ).timepicker({ 'scrollDefault': 'now' }); -$('#scrollDefaultExample').timepicker({ 'scrollDefault': 'now' }); diff --git a/dump.rdb b/dump.rdb index 56908672..332310c7 100644 Binary files a/dump.rdb and b/dump.rdb differ