Skip to content

Commit

Permalink
- change moving days details (#281)
Browse files Browse the repository at this point in the history
* change calculations

* bump

* fix bump
  • Loading branch information
Baakoma authored Apr 21, 2023
1 parent 6af058a commit a5702da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/js/Pages/VacationLimits.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ watch(() => form.items, () => {
@change-previous-year="limitToChange = item; takingDaysFromPreviousYear = true"
>
<div class="inline-flex items-center py-2 px-4 mt-1 w-full max-w-lg text-gray-500 bg-gray-50 rounded-md border border-gray-300 sm:col-span-2 sm:mt-0 sm:text-sm">
{{ item.remainingLastYear }}
{{ item.remainingLastYear + item.fromPreviousYear }}
</div>
</RemainingFromPreviousYearPopup>
</td>
Expand Down
10 changes: 9 additions & 1 deletion resources/js/Shared/RemainingFromPreviousYearPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defineProps({
Pozostałe dni
</dt>
<dd class="text-sm text-gray-900">
{{ remaining ?? 0 }}
{{ (remaining ?? 0) + toNextYear }}
</dd>
</div>
<div class="py-2 space-y-1">
Expand All @@ -36,6 +36,14 @@ defineProps({
{{ toNextYear ?? 0 }}
</dd>
</div>
<div class="py-2 space-y-1">
<dt class="text-sm font-medium text-gray-500">
Pozostałe do wykorzystania
</dt>
<dd class="text-sm text-gray-900">
{{ remaining ?? 0 }}
</dd>
</div>
<div class="py-2">
<button
type="button"
Expand Down

0 comments on commit a5702da

Please sign in to comment.