comee_core 0.2.38 → 0.2.40

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: 033e75a2d4507949ad9f3363a5346d3dde0c682e96eb901e5d6095e94d462f92
4
- data.tar.gz: a7829b047ad6f4850365acde44bb33019a33bc24268adb3865a48f399d587548
3
+ metadata.gz: 5c02cd93edacf9b24065620e3bd4f6002bef4514fe78a9b97c04d95a58f8da18
4
+ data.tar.gz: 385dfc6ed87f75ba8090f36e42b50b6003dbca38b76a37dfe98c6ffb967bb956
5
5
  SHA512:
6
- metadata.gz: d47f62c4a336b48237fefe3ccdb2a2f5993eda913864c566c09b07ea284f34f51672c653620b385785b7c3b2911550adf3a3b21a3e991811f7f3592967dee578
7
- data.tar.gz: 65f6674ddac2c67d125ced475c93a23846326b5458b40cb35aba5138635a12086017e14dddb81a2642d8c75a675958b6b4a40f84bb774ba6677dd13fc59c75df
6
+ metadata.gz: 1a621fc4b3f4f6a28a7bce0d57002d83efb0bb841251bad531218e8aa9ac9bcef9e907f0e76cc9fc58d41054780804fe5c1c087e2f41417da5816351256bca21
7
+ data.tar.gz: 41a9ccb017d6bbaf6bc357f0dcb6625519a0c7193376ddf21c5fbfb1189e4fb57f1c48c787bb880a712418719357549169fd1c36ae59d0c669f6edf2e619830e
@@ -2,6 +2,8 @@ module Comee
2
2
  module Core
3
3
  class PurchaseOrder < ApplicationRecord
4
4
  belongs_to :supplier
5
+ has_many :purchase_order_items
6
+
5
7
  validates :order_date, :delivery_address, :status, :delivery_date, presence: true
6
8
  enum status: {
7
9
  draft: 0,
data/config/routes.rb CHANGED
@@ -74,10 +74,6 @@ Comee::Core::Engine.routes.draw do
74
74
  end
75
75
  resources :unit_conversions
76
76
  resources :users
77
- post "/purchase_orders/filter", controller: :purchase_orders, action: :filter
78
- resources :purchase_orders
79
- post "/purchase_order_items/filter", controller: :purchase_order_items, action: :filter
80
- resources :purchase_order_items
81
77
  resources :clients do
82
78
  member do
83
79
  get "rfq_products", controller: :quotation_requests, action: :rfq_products_for_client
@@ -1,5 +1,5 @@
1
1
  module Comee
2
2
  module Core
3
- VERSION = "0.2.38".freeze
3
+ VERSION = "0.2.40".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.38
4
+ version: 0.2.40
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-03-23 00:00:00.000000000 Z
11
+ date: 2024-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -365,8 +365,6 @@ files:
365
365
  - app/serializers/comee/core/product_lookup_serializer.rb
366
366
  - app/serializers/comee/core/product_serializer.rb
367
367
  - app/serializers/comee/core/product_type_serializer.rb
368
- - app/serializers/comee/core/purchase_order_item_serializer.rb
369
- - app/serializers/comee/core/purchase_order_serializer.rb
370
368
  - app/serializers/comee/core/quotation_request_item_serializer.rb
371
369
  - app/serializers/comee/core/quotation_request_serializer.rb
372
370
  - app/serializers/comee/core/sales_order_item_serializer.rb
@@ -1,7 +0,0 @@
1
- module Comee
2
- module Core
3
- class PurchaseOrderItemSerializer < ActiveModel::Serializer
4
- attributes :id, :sales_order_item_id, :purchase_order_id, :quantity, :delivery_date, :status
5
- end
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- module Comee
2
- module Core
3
- class PurchaseOrderSerializer < ActiveModel::Serializer
4
- attributes :id, :supplier_id, :order_date, :status, :delivery_address
5
- end
6
- end
7
- end