[UPDT] PAYROLL: Change input field id
This commit is contained in:
@@ -28,9 +28,9 @@
|
||||
<div class="d-flex">
|
||||
<div class="oh-switch">
|
||||
{% if perms.payroll.change_PayslipAutoGenerate %}
|
||||
<input type="checkbox" id="GTIsActivate" data-id ="{{auto.id}}" class="oh-switch__checkbox" {% if auto.auto_generate %} checked {% endif %} onchange="updateAutoPayslipIsActivate(this)">
|
||||
<input type="checkbox" id="PayslipAutoGenerateActivate" data-id ="{{auto.id}}" class="oh-switch__checkbox" {% if auto.auto_generate %} checked {% endif %} onchange="updateAutoPayslipIsActivate(this)">
|
||||
{% else %}
|
||||
<input type="checkbox" id="GTIsActivate" class="oh-switch__checkbox" {% if auto.auto_generate %} checked {% endif %} disabled>
|
||||
<input type="checkbox" id="PayslipAutoGenerateActivate" class="oh-switch__checkbox" {% if auto.auto_generate %} checked {% endif %} disabled>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1736,9 +1736,9 @@ def create_or_update_auto_payslip(request, auto_id=None):
|
||||
@permission_required("payroll.change_PayslipAutoGenerate")
|
||||
def activate_auto_payslip_generate(request):
|
||||
"""
|
||||
ajax function to update is active field in grace time.
|
||||
ajax function to update is active field in PayslipAutoGenerate.
|
||||
Args:
|
||||
- isChecked: Boolean value representing the state of grace time,
|
||||
- isChecked: Boolean value representing the state of PayslipAutoGenerate,
|
||||
- autoId: Id of PayslipAutoGenerate object
|
||||
"""
|
||||
isChecked = request.POST.get("isChecked")
|
||||
|
||||
Reference in New Issue
Block a user