IT Team Daily Work Report
—
to
ERPNext API Connection
The dashboard calls your custom whitelisted method and reads the message object: success, count, and data — an array of timesheets, each with timesheet, employee_name, from_date, and time_logs (description, hours, task, completed).
Request sent:
Response shape expected:
GET <your-url>?from_date=YYYY-MM-DD&to_date=YYYY-MM-DD with header Authorization: token key:secret when keys are given.Response shape expected:
"message": { "success": true, "count": N, "data": [ {…}, {…} ] } — one entry per timesheet/employee.