[UPDT] PAYROLL: Changed payslip employee image from if condition to get_avatar method

This commit is contained in:
Horilla
2023-11-02 12:29:13 +05:30
parent 15ed640a75
commit ccec1c2b05
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@
<div class="oh-profile oh-profile--md">
<div class="oh-profile__avatar mr-1">
<img
src="https://ui-avatars.com/api/?name={{payslip.employee_id}}&background=random"
src="{{payslip.employee_id.get_avatar}}"
class="oh-profile__image"
alt="Mary Magdalene"
/>

View File

@@ -60,7 +60,7 @@
<div class="oh-profile oh-profile--md">
<div class="oh-profile__avatar mr-1">
<img
src="https://ui-avatars.com/api/?name={{payslip.employee_id}}&background=random"
src="{{payslip.employee_id.get_avatar}}"
class="oh-profile__image"
alt="Mary Magdalene"
/>