hr_lite 0.21.0 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d2f9a101bb4b88ff5c5387f7da5141c2352388216b60b74889a508826f0b1ed
4
- data.tar.gz: 67e8da86ef1d895d5ff40a35f1d27c3a131787b154ba3c5ed68af8b0fdbf7649
3
+ metadata.gz: b228dd2330323d3a246e1ce28d35fffd6756504111414db39b6cf926743d809a
4
+ data.tar.gz: 4edfddb2381d4f9658b35f2b2178e86f00abb6e5d25c5c5a4d6d5cfab2df721f
5
5
  SHA512:
6
- metadata.gz: f3365b0fec9bacdbddb3118a634fb781552b032f59c20b0375de141052b018f7960bb76c7354b8d48edb14236134bdfbc3a2040932387fe8ef406305cf99c74d
7
- data.tar.gz: 5aac23f5baf4c64b1266580e8785360ce10d2033ee68d2d01d3965329a8c0c18e7daedb58e96ae478444099e4d5a01845fb5a7afc0dcf014eff594ab9996960a
6
+ metadata.gz: 2b926fab3a9e35d469dc5bd644cf6613ed6d0cd33cfd779ad3b7c1652de672ec4d0f065deac5035cd56833f37f151a7f56631f55244540fae08dccf52857b81f
7
+ data.tar.gz: 3c3e8489b655dad09965c7b1ef47b0fe1ac0f44c276513ed0b3d3e57acf3bd0bed8f16110f79470121c1573882cd456c3860f37917b062d5498b22382ca09bb1
data/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.21.2] - 2026-10-07
11
+
12
+ ### Fixed
13
+ - HR recording leave for an employee on probation is no longer refused by the 1-day-a-month cap; the cap still applies when the employee applies themselves.
14
+
15
+ ## [0.21.1] - 2026-10-07
16
+
17
+ ### Fixed
18
+ - Admin "Team leave balances" now shows used/entitled per type, not only what is left.
19
+
10
20
  ## [0.21.0] - 2026-10-06
11
21
 
12
22
  Three migrations: `hr_lite_employee_profiles.probation_until` (date),
@@ -333,8 +333,10 @@ module HrLite
333
333
  end
334
334
 
335
335
  # Probation: at most one day of leave (any type) in a calendar month.
336
+ # Caps self-service only; HR recording leave is already the approval.
336
337
  def within_probation_cap
337
338
  return unless start_date && days_count
339
+ return if recorded_by_hr?
338
340
  return unless EmployeeProfile.find_by(user_id: user_id)&.on_probation?(start_date)
339
341
 
340
342
  taken = self.class.where(user_id: user_id, status: %w[pending approved])
@@ -17,7 +17,7 @@
17
17
  <td><%= hr_display_name(employee) %></td>
18
18
  <% @types.each do |type| %>
19
19
  <% balance = HrLite::LeaveBalance.for(employee, type, @year) %>
20
- <td class="hrl-num"><%= balance.available.to_f %></td>
20
+ <td class="hrl-num"><strong><%= balance.available.to_f %></strong> left<br><span class="hrl-small hrl-muted"><%= balance.used.to_f %>/<%= balance.entitled.to_f %> used</span></td>
21
21
  <% end %>
22
22
  </tr>
23
23
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module HrLite
2
- VERSION = "0.21.0"
2
+ VERSION = "0.21.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hr_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kshitiz sinha