zaikio-procurement 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '00691a481c639aeef92efb3b1f8070564b0763ec232613fa4a1e7b47bd0b1770'
|
|
4
|
+
data.tar.gz: 36ec16902de34b2c48ea043340b3714ff76e4feefa1b491e7cf62cf518640cd5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d42302e4b51f4ee9505e9c34a20c07f257f96012f36a3e5471735b5cc1bd9a1e0be805e890b08171dc1d61855734834c4194b5b210b8e3908574c0c4a41a5171
|
|
7
|
+
data.tar.gz: 943068ff4356498e78f5aaae3f047b472d63e507466cd61eb49fdafef6c22f0d69175de5e8f263dc27e92b7d98c4583746d46586636e1b0d9d1ca314a22b414f
|
|
@@ -8,7 +8,7 @@ module Zaikio
|
|
|
8
8
|
attributes :amount, :anticipated_costs, :archived_at, :archived_by, :article_category, :canceled_at, :currency,
|
|
9
9
|
:description, :environmental_certification, :expected_at, :fulfilled_at, :material_required_at,
|
|
10
10
|
:job_client, :job_description, :job_link, :job_reference, :ordered_at, :order_number, :person,
|
|
11
|
-
:price, :purchaser, :price_based_on_quantity, :
|
|
11
|
+
:price, :purchaser, :price_based_on_quantity, :references, :site, :state, :unit,
|
|
12
12
|
:created_at, :updated_at
|
|
13
13
|
|
|
14
14
|
# Associations
|
|
@@ -11,6 +11,8 @@ module Zaikio
|
|
|
11
11
|
has_many :contract_requests, class_name: "Zaikio::Procurement::ContractRequest",
|
|
12
12
|
uri: "suppliers/:supplier_id/contract_requests(/:id)"
|
|
13
13
|
|
|
14
|
+
has_many :distributors, class_name: "Zaikio::Procurement::Supplier", uri: nil
|
|
15
|
+
|
|
14
16
|
def line_item_suggestions(**attributes)
|
|
15
17
|
variants = attributes.delete(:variants)
|
|
16
18
|
|
data/lib/zaikio/procurement.rb
CHANGED
|
@@ -23,7 +23,6 @@ require "zaikio/procurement/delivery"
|
|
|
23
23
|
require "zaikio/procurement/delivery_line_item"
|
|
24
24
|
require "zaikio/procurement/current_supplier"
|
|
25
25
|
require "zaikio/procurement/material_requirement"
|
|
26
|
-
require "zaikio/procurement/material_availability_check"
|
|
27
26
|
require "zaikio/procurement/order_conditions_inquiry"
|
|
28
27
|
|
|
29
28
|
module Zaikio
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zaikio-procurement
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zaikio GmbH
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: concurrent-ruby
|
|
@@ -118,7 +118,6 @@ files:
|
|
|
118
118
|
- lib/zaikio/procurement/delivery.rb
|
|
119
119
|
- lib/zaikio/procurement/delivery_line_item.rb
|
|
120
120
|
- lib/zaikio/procurement/invoice.rb
|
|
121
|
-
- lib/zaikio/procurement/material_availability_check.rb
|
|
122
121
|
- lib/zaikio/procurement/material_requirement.rb
|
|
123
122
|
- lib/zaikio/procurement/order.rb
|
|
124
123
|
- lib/zaikio/procurement/order_conditions_inquiry.rb
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
module Zaikio
|
|
2
|
-
module Procurement
|
|
3
|
-
class MaterialAvailabilityCheck < Base
|
|
4
|
-
uri "material_availability_checks(/:id)"
|
|
5
|
-
include_root_in_json :material_availability_check
|
|
6
|
-
|
|
7
|
-
# Attributes
|
|
8
|
-
attributes :consumer_id, :variant_id, :environmental_certification,
|
|
9
|
-
:unit, :amount, :currency, :required_at, :responded_at, :expires_at,
|
|
10
|
-
:earliest_delivery_date, :stock_availability_amount, :confirmed_price,
|
|
11
|
-
:created_at, :updated_at
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|