comee_core 0.2.59 → 0.2.60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/comee/core/purchase_requisition_item.rb +22 -0
- data/lib/comee/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf2a038860b8510f876109ece2bd8b805b17f3daeb20c13cebfb9b5e9af3329c
|
4
|
+
data.tar.gz: 25517d12bce6ab946a9cbc2edc6102b34c5e9458c1197f661060c65b7f9523a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 692be3876a190479f7a2d0cecc6d8e5b9fbfeeb5cd936ed2db37e2035a6f0b907eb7979ccf47c29d1030009d939b4b6eb10e913036440ec03896bf3eff646321
|
7
|
+
data.tar.gz: 145d9b19082364fd6541a2a3456cbae38292854be28b5cdca125a3d65865f9a0121fa78799d5f7c164036b3905c5c3ca4bd19fa9b1808f82d03e796d91fe3fdb
|
@@ -23,6 +23,28 @@ module Comee
|
|
23
23
|
purchase_requisition.total_price = purchase_requisition.calculate_total_price
|
24
24
|
purchase_requisition.save!
|
25
25
|
end
|
26
|
+
|
27
|
+
def self.ransackable_attributes(_auth_object = nil)
|
28
|
+
%w[
|
29
|
+
delivery_date
|
30
|
+
id
|
31
|
+
price
|
32
|
+
processing_status
|
33
|
+
product_id
|
34
|
+
purchase_order_item_id
|
35
|
+
purchase_requisition_id
|
36
|
+
quantity
|
37
|
+
supplier_id
|
38
|
+
total_price
|
39
|
+
unit_id
|
40
|
+
created_at
|
41
|
+
updated_at
|
42
|
+
]
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.ransackable_associations(_auth_object = nil)
|
46
|
+
[]
|
47
|
+
end
|
26
48
|
end
|
27
49
|
end
|
28
50
|
end
|
data/lib/comee/core/version.rb
CHANGED