From df2a9ba96526cad19aacec47cf2f8a70d7302ace Mon Sep 17 00:00:00 2001 From: Horilla Date: Thu, 22 Feb 2024 13:56:27 +0530 Subject: [PATCH] [UPDT] PAYROLL: Select all checkbox unselect if any record is unselected --- payroll/templates/payroll/payslip/group_by.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/payroll/templates/payroll/payslip/group_by.html b/payroll/templates/payroll/payslip/group_by.html index d67db97e7..0e65de44a 100644 --- a/payroll/templates/payroll/payslip/group_by.html +++ b/payroll/templates/payroll/payslip/group_by.html @@ -71,8 +71,11 @@
@@ -98,7 +101,12 @@ type="checkbox" id="{{payslip.id}}" value="{{payslip.id}}" - onchange="highlightRow($(this))" + onchange=" + highlightRow($(this)); + if (!$(this).is(':checked')) { + $(this).closest('.oh-sticky-table').find('.group-select').prop('checked',false) + } + " class="oh-input payslip-checkbox oh-input__checkbox all-payslip-row" />