Merge pull request 'years previous to contract error corrected' (#487) from 2675-worker_time_control_year_error into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #487 Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
commit
2ed7fdd367
|
@ -146,7 +146,7 @@ module.exports = Self => {
|
|||
});
|
||||
|
||||
if (currentContract) {
|
||||
const maxHolidays = currentContract.holidays().days;
|
||||
const maxHolidays = currentContract.holidays() && currentContract.holidays().days;
|
||||
calendar.totalHolidays = maxHolidays;
|
||||
|
||||
workedDays -= entitlementRate;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<h6 translate>Holidays</h6>
|
||||
<div>
|
||||
{{'Used' | translate}} {{$ctrl.calendar.holidaysEnjoyed}}
|
||||
{{'of' | translate}} {{$ctrl.calendar.totalHolidays}} {{'days' | translate}}
|
||||
{{'of' | translate}} {{$ctrl.calendar.totalHolidays || 0}} {{'days' | translate}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="vn-pt-md">
|
||||
|
|
Loading…
Reference in New Issue