AccessType

This commit is contained in:
Mohaimen Hasan 2026-11-23 17:02:23 +06:00
parent 4928535909
commit 8673cdd893
2 changed files with 9 additions and 7 deletions

View File

@ -221,12 +221,14 @@
<fieldset>
<div class="button-container1">
@for (type of payrollTypes; track type) {
<button kendoButton
class="access-type-button"
(click)="selectAccessType(type.id)">
<img [src]="getImagePath(type.id)" alt="{{ type.description }}" class="access-type-image"/>
<span class="button-text">{{ type.description }}</span>
</button>
@if (type.id != selectedPayrollTypeID) {
<button kendoButton
class="access-type-button"
(click)="selectAccessType(type.id)">
<img [src]="getImagePath(type.id)" alt="{{ type.description }}" class="access-type-image"/>
<span class="button-text">{{ type.description }}</span>
</button>
}
}
</div>
</fieldset>

View File

@ -869,7 +869,7 @@ namespace HRM.UI.Controllers
{
return BadRequest("You do not have approved access to this Access Type.");
}
token = this.CreateToten(oempUser, optype.ID, optype.NextPayProcessDate);
token = this.CreateTokenNew(oempUser, optype.ID, optype.NextPayProcessDate, null);
}
catch (Exception e)
{