comee_core 0.2.18 → 0.2.20
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd5a61071fed8aec936c2a3882f36b62a02bae34abe80720293183d60a243a01
|
4
|
+
data.tar.gz: abf68d74d99823aab6cb3722f037bf13ce510487e5e36b7741e662a96f7c2d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d4ac0017f06f64305e930e64d4f6c6524919687d51a4b40726ddc843eb28abecde02cfee2e5cb6d056aa1610058cae1badfee06203a70632d5753864a8c7f67
|
7
|
+
data.tar.gz: 5fd24135f222997802eb12224da1007b041d6a47f19ab6e44683c2e1cb65756d72552b461cf1b30f20b445acf31d67d4e013141481c228aee0edab8345e19b59
|
@@ -14,7 +14,7 @@ module Comee
|
|
14
14
|
|
15
15
|
def filter
|
16
16
|
shipment_item = ShipmentItem.includes(:sales_order_item).ransack(params[:q]).result
|
17
|
-
options = {fields: ["sales_order_item.sales_order.client"]}
|
17
|
+
options = {fields: ["sales_order_item.sales_order.client", "sales_order_item.product", "sales_order_item.unit"]}
|
18
18
|
render_content(shipment_item, options)
|
19
19
|
end
|
20
20
|
|
@@ -5,8 +5,10 @@ module Comee
|
|
5
5
|
DELIVERY_NOTE_CREATED = "Delivery Note Created".freeze
|
6
6
|
COMPLETELY_PICKED_AND_PACKED = "Completely Picked & Packed".freeze
|
7
7
|
PARTIALLY_PICKED_AND_PACKED = "Partially Picked & Packed".freeze
|
8
|
+
SHIPMENT_INSTRUCTION_CREATED = "Shipment Instruction Created".freeze
|
8
9
|
|
9
|
-
STATUSES = [INITIALIZED, DELIVERY_NOTE_CREATED, COMPLETELY_PICKED_AND_PACKED, PARTIALLY_PICKED_AND_PACKED
|
10
|
+
STATUSES = [INITIALIZED, DELIVERY_NOTE_CREATED, COMPLETELY_PICKED_AND_PACKED, PARTIALLY_PICKED_AND_PACKED,
|
11
|
+
SHIPMENT_INSTRUCTION_CREATED].freeze
|
10
12
|
|
11
13
|
belongs_to :shipment_item
|
12
14
|
|
@@ -3,9 +3,18 @@ module Comee
|
|
3
3
|
class Pod < ApplicationRecord
|
4
4
|
enum :status, {draft: 0, confirmed: 1, signed: 2}
|
5
5
|
has_many :shipment_instruction_items
|
6
|
+
has_many :delivery_notes
|
6
7
|
has_many :invoices
|
7
8
|
|
8
9
|
validates :reference_no, :status, presence: true
|
10
|
+
|
11
|
+
def self.ransackable_attributes(_auth_object = nil)
|
12
|
+
%w[id reference_no status]
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.ransackable_associations(_auth_object = nil)
|
16
|
+
[]
|
17
|
+
end
|
9
18
|
end
|
10
19
|
end
|
11
20
|
end
|
data/lib/comee/core/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.20
|
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-02-
|
11
|
+
date: 2024-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|