ecom_core 1.1.26 → 1.1.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/ecom/core/crew_time.rb +1 -1
- data/lib/ecom/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: 9762a1b0d92bec25c6c0e52c814ee95a2e48e5b271c39d59d28fb8ff4d9b01f2
|
4
|
+
data.tar.gz: 0d664422f9ed3f12b49889383b674c3b33090f4d5a0ea9f81c849cb70580b068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b88471b8c2196bcfdb57f087a50be078e7e57def36adb2e3a4dbdb9106701374ce7eb503240cee109c9be700b141dc78a3500222c09bb7651cb00fc2d2989eb
|
7
|
+
data.tar.gz: bd6e8e1dda621385024a9460a849cb5a6ab198cdc34aa32f03bfe19904216e7bdd76c66a15466b525b7e734dbde94c0a089af110e18be1bc4405e0e0cc49e18d
|
@@ -22,7 +22,7 @@ module Ecom
|
|
22
22
|
before_validation :calculate_hours
|
23
23
|
|
24
24
|
def calculate_hours
|
25
|
-
self.hours = checkout_time.nil? ? 0 : compute_hours
|
25
|
+
self.hours = (checkout_time.nil? || checkin_time.nil?) ? 0 : compute_hours
|
26
26
|
end
|
27
27
|
|
28
28
|
# A method to check if checkin and checkout range falls in the morning,
|
data/lib/ecom/core/version.rb
CHANGED