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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 684f4fd81b9eef6da1506b92ce20300169eb7f0af2219b0f0fab735a1d9fd7c0
4
- data.tar.gz: 9353cbd91b041984ef78bdef6b0fd6a4f3d6431c18f0f598024ed9533124f710
3
+ metadata.gz: 9762a1b0d92bec25c6c0e52c814ee95a2e48e5b271c39d59d28fb8ff4d9b01f2
4
+ data.tar.gz: 0d664422f9ed3f12b49889383b674c3b33090f4d5a0ea9f81c849cb70580b068
5
5
  SHA512:
6
- metadata.gz: 6e12741b87c8af09b9c35a639539e06f597216aaf9c590a60d56d214d60b9ad7b841812ec2a857d397cac1eb2669ca0eed71c08255de745df8b7db10f44a0f6b
7
- data.tar.gz: d23867509e519c65c0e28abe38ed3fa467d7ba03d5291bae9b42419c9df4eb3344b902fc5d20b6db8deca22e594e5d26bf15053dd33ead0e6e526325e617e761
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,
@@ -1,5 +1,5 @@
1
1
  module Ecom
2
2
  module Core
3
- VERSION = '1.1.26'.freeze
3
+ VERSION = '1.1.27'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecom_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.26
4
+ version: 1.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.