Remove order admin page filter 'show only unfulfilled orders' as done on spree 2

This commit is contained in:
luisramos0
2018-10-20 15:11:47 +01:00
parent 3a2e52cc98
commit 653c67971f
4 changed files with 0 additions and 8 deletions

View File

@@ -26,7 +26,6 @@ angular.module("admin.orders").controller "ordersCtrl", ($scope, RequestMonitor,
'q[bill_address_firstname_start]': $scope['q']['bill_address_firstname_start'],
'q[bill_address_lastname_start]': $scope['q']['bill_address_lastname_start'],
'q[completed_at_not_null]': $scope['q']['completed_at_not_null'],
'q[inventory_units_shipment_id_null]': $scope['q']['inventory_units_shipment_id_null'],
'q[distributor_id_in]': $scope['q']['distributor_id_in'],
'q[order_cycle_id_in]': $scope['q']['order_cycle_id_in'],
'q[order_cycle_id_in]': $scope['q']['order_cycle_id_in'],

View File

@@ -36,8 +36,6 @@ Spree::Admin::OrdersController.class_eval do
created_at_gt = params[:q][:created_at_gt]
created_at_lt = params[:q][:created_at_lt]
params[:q].delete(:inventory_units_shipment_id_null) if params[:q][:inventory_units_shipment_id_null] == "0"
if !params[:q][:created_at_gt].blank?
params[:q][:created_at_gt] = Time.zone.parse(params[:q][:created_at_gt]).beginning_of_day rescue ""
end

View File

@@ -30,10 +30,6 @@
%label
= f.check_box :completed_at_not_null, {:checked => @show_only_completed, 'ng-model' => 'q.completed_at_not_null'}, '1', ''
= t(:show_only_complete_orders)
.field.checkbox
%label
= f.check_box :inventory_units_shipment_id_null, {'ng-model' => 'q.inventory_units_shipment_id_null'}, '1', '0'
= t(:show_only_unfulfilled_orders)
.field-block.alpha.eight.columns
= label_tag nil, t(:distributors)
= select_tag("q[distributor_id_in]",

View File

@@ -242,7 +242,6 @@ en:
notes: Notes
error: Error
processing_payment: Processing payment...
show_only_unfulfilled_orders: Show only unfulfilled orders
filter_results: Filter Results
quantity: Quantity
pick_up: Pick up