comee_core 0.3.46 → 0.3.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/comee/core/sales_order_items_controller.rb +1 -1
- data/app/models/comee/core/sales_order_item.rb +3 -2
- data/app/serializers/comee/core/purchase_order_item_serializer.rb +1 -1
- data/db/migrate/20240814125757_add_details_field_to_purchase_order_item.rb +6 -0
- data/lib/comee/core/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00f03dece5e306a3223e1f8d3b4f2bff270bca417d6d0acdc26e41f1f158b8bf
|
4
|
+
data.tar.gz: dc7de7a9f4e7c54211b0bfd80787c27459c945181a8936f651aa763f8645491d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f40f1786625685b59dd60cb79cd9535dc6f72ee5eccbee66606424a7c60cb532aca082b78f2c742165957f79a69821378d9cf09c02bad540f3b6d8cfcd52633c
|
7
|
+
data.tar.gz: 8492dc6005f3f19af459a0ddbe14b0943c5a395cfd24274e871088d5aa7a4b0ce65d39eb9d7263583f693d3c3b46700d9ecf6086c66c83fc813b83379d43a86a
|
@@ -19,8 +19,9 @@ module Comee
|
|
19
19
|
has_many :shipment_items
|
20
20
|
|
21
21
|
validates :serial_no, :customer_item_no, :customer_item_description, :delivery_date, :processing_status, presence: true
|
22
|
-
validates :
|
23
|
-
validates :
|
22
|
+
validates :price, presence: true, numericality: {greater_than: 0}
|
23
|
+
validates :quantity, presence: true
|
24
|
+
validates :quantity, :quantity_delivered, :quantity_canceled, numericality: {greater_than_or_equal_to: 0}
|
24
25
|
validates :serial_no, numericality: {greater_than: 0, only_integer: true}
|
25
26
|
|
26
27
|
delegate(:po_number, to: :purchase_order_item, prefix: false, allow_nil: true)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Comee
|
2
2
|
module Core
|
3
3
|
class PurchaseOrderItemSerializer < ActiveModel::Serializer
|
4
|
-
attributes :id, :serial_no, :quantity, :confirmed_quantity, :price
|
4
|
+
attributes :id, :serial_no, :quantity, :confirmed_quantity, :price, :details
|
5
5
|
|
6
6
|
belongs_to :purchase_order
|
7
7
|
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.3.
|
4
|
+
version: 0.3.48
|
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-08-
|
11
|
+
date: 2024-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_model_serializers
|
@@ -539,6 +539,7 @@ files:
|
|
539
539
|
- db/migrate/20240805085256_add_details_to_shipment_instruction_item.rb
|
540
540
|
- db/migrate/20240805093326_update_details_column_in_shipment_instruction_items.rb
|
541
541
|
- db/migrate/20240807050230_add_amount_credited_to_invoice.rb
|
542
|
+
- db/migrate/20240814125757_add_details_field_to_purchase_order_item.rb
|
542
543
|
- lib/comee/core.rb
|
543
544
|
- lib/comee/core/engine.rb
|
544
545
|
- lib/comee/core/version.rb
|