fix: restore SSN column in Monthly Absence Report

SSN stays in the report but is not populated into hissə_3.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ali 2026-03-31 17:33:04 +04:00
parent ea66dfcb19
commit cf3f1f46de
1 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,12 @@ def get_columns():
"fieldtype": "Data",
"width": 110
},
{
"label": _("SSN"),
"fieldname": "ssn",
"fieldtype": "Data",
"width": 130
},
{
"label": _("Davamsızlığın səbəbi"),
"fieldname": "absent_reason",
@ -55,6 +61,7 @@ def get_data(filters):
e.last_name,
e.first_name,
e.passport_number AS fin,
e.ssn,
a.absent_reason,
COUNT(*) AS days_absent
FROM `tabAttendance` a