comee_core 0.3.45 → 0.3.47
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: c4e33572e9d4256ce515be2ab94010fadf632cde1d83861af9ea8f051a6e897e
|
4
|
+
data.tar.gz: 30599108be1f974b1763ba7765bcc1da618430d3091dd9759f9e30c31ba672a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae8997096a13749e225a675dbdae63ff66908860c3eb9bebf7604070751869f322a5a8693c679db45f6f1bf4b4a1b2039edbc08f3b07ca199f04ce281c0ca125
|
7
|
+
data.tar.gz: beed6557cb82f9f8b6e402fdeb155738dbe7e65d0c55923ebd04de63ef64c96ea88dd35b407bc3eeae0e0fb51e7778412fc4deee27193207b3c5029d26bf636c
|
@@ -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)
|
@@ -71,7 +71,10 @@ module Comee
|
|
71
71
|
|
72
72
|
return nil if period1 > period2 || period1.contains?(period2)
|
73
73
|
|
74
|
-
Period.new(period1.finish.advance(days: 1), period2.finish)
|
74
|
+
period = Period.new(period1.finish.advance(days: 1), period2.finish)
|
75
|
+
return nil unless period.valid?
|
76
|
+
|
77
|
+
period
|
75
78
|
end
|
76
79
|
end
|
77
80
|
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.47
|
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
|