[UPDT] PAYROLL: Updated currency positon in allowance
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
{% load i18n %}
|
||||
{% load i18n horillafilters %}
|
||||
{% if instance.is_fixed %}
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.amount}}</span>
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.amount|currency_symbol_position}}</span>
|
||||
{% else %}
|
||||
{% if instance.based_on == "basic_pay" %}
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.rate}}% of {{instance.get_based_on_display}}</span>
|
||||
{% endif %}
|
||||
{% if instance.based_on == "attendance" %}
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.per_attendance_fixed_amount}} {{currency}} {% trans "Amount Per Attendance" %}</span>
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.per_attendance_fixed_amount|currency_symbol_position}} {% trans "Amount Per Attendance" %}</span>
|
||||
{% endif %}
|
||||
{% if instance.based_on == "shift_id" %}
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.shift_per_attendance_amount}} {{currency}} {% trans "Amount Per" %} {{instance.shift_id}}</span>
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.shift_per_attendance_amount|currency_symbol_position}} {% trans "Amount Per" %} {{instance.shift_id}}</span>
|
||||
{% endif %}
|
||||
{% if instance.based_on == "work_type_id" %}
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.work_type_per_attendance_amount}} {{currency}} {% trans "Amount Per" %} {{instance.work_type_id}}</span>
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.work_type_per_attendance_amount|currency_symbol_position}} {% trans "Amount Per" %} {{instance.work_type_id}}</span>
|
||||
{% endif %}
|
||||
{% if instance.based_on == "overtime" %}
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.amount_per_one_hr}} {{currency}} {% trans "Amount Per One Hour" %}</span>
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.amount_per_one_hr|currency_symbol_position}} {% trans "Amount Per One Hour" %}</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
{% load i18n %}
|
||||
{% load i18n horillafilters %}
|
||||
|
||||
{% if instance.has_max_limit %}
|
||||
<span class="oh-timeoff-modal__stat-count">{{instance.maximum_amount}} {{currency}} {% if instance.based_on == "basic_pay" %}{% trans "For working days on a month" %}{% endif %}</span>
|
||||
<span class="oh-timeoff-modal__stat-count"
|
||||
>{{instance.maximum_amount|currency_symbol_position}}
|
||||
{% if instance.based_on == "basic_pay" %}
|
||||
{% trans "For working days on a month"%}
|
||||
{% endif %}
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="oh-timeoff-modal__stat-count">{% trans "No" %}</span>
|
||||
<span class="oh-timeoff-modal__stat-count">{% trans "No" %}</span>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user