comee_core 0.2.58 → 0.2.59

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2664bb5e7d936f63376c946fe922a66a6555a4d7ca2bb4cca8df1ba6a768d03
4
- data.tar.gz: 3db2c4820eadb17902604265139a758aefbd7b2ed6e9b7103f2d23a1718adf17
3
+ metadata.gz: f2c3e7d7089bb604a50c7d102d77df12fbfda4cabe67b4329864bdb8039e5938
4
+ data.tar.gz: 26808c3d8636d02619a306090cf3d360e3c3e8f784774279c717e24a5f869ccd
5
5
  SHA512:
6
- metadata.gz: 55e82647d7c5d8aa66d62d5c5b43fc091279649207288201702a931b926c9b7a51a53b02fbd2f30a3a12d1f63eb76a90515bb0b82cfe4a7bbd68ffdba8f5a6f8
7
- data.tar.gz: 367fd84cb146aca306ad696f1579d6ef061fbf04c033daa82bc17458028be5284bfce68f72c3dfb6b7be3b0ff33bc8e04bb201d8c7f13e1f76229de80924dd39
6
+ metadata.gz: 4f9fd27d598570509720066cf3258e3a6368fdd7e7454273ea8fbe8d0aa9eaab3e847f83fa0aad072950c0dea0fcd74546f1c09d05cbe7bf80e20d539e17b2db
7
+ data.tar.gz: 57014da5e8ca68845cb68a0dea2108f28c2ffad0651064f02ec10dec12eb801acaa455e3fccaa8e55e3e2ebfff247e85a3becdb78174f67eaacaea1a1beacba0
@@ -15,6 +15,18 @@ module Comee
15
15
  end
16
16
  end
17
17
 
18
+ def filter
19
+ data = SalesOrderItem.includes(
20
+ :sales_order,
21
+ :purchase_order_item,
22
+ :customer_order_item,
23
+ :source,
24
+ :product,
25
+ :unit
26
+ ).ransack(params[:q]).result
27
+ render_content(data)
28
+ end
29
+
18
30
  def shipment_details
19
31
  details = SalesOrderItem.includes(
20
32
  shipment_items: [
data/config/routes.rb CHANGED
@@ -117,6 +117,9 @@ Comee::Core::Engine.routes.draw do
117
117
  post "activate"
118
118
  post "cancel_quantity"
119
119
  end
120
+ collection do
121
+ post "filter"
122
+ end
120
123
  end
121
124
  resources :shipment_items do
122
125
  collection do
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.2.58".freeze
3
+ VERSION = "0.2.59".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comee_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.58
4
+ version: 0.2.59
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-20 00:00:00.000000000 Z
11
+ date: 2024-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers