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 +4 -4
- data/CHANGELOG.md +10 -0
- data/app/models/hr_lite/leave_request.rb +2 -0
- data/app/views/hr_lite/admin/leave_balances/index.html.erb +1 -1
- data/lib/hr_lite/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: b228dd2330323d3a246e1ce28d35fffd6756504111414db39b6cf926743d809a
|
|
4
|
+
data.tar.gz: 4edfddb2381d4f9658b35f2b2178e86f00abb6e5d25c5c5a4d6d5cfab2df721f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 %>
|
data/lib/hr_lite/version.rb
CHANGED