Skip to content

Timesheets Summary & Upcoming Time-Offs API (BE) #1144

@liyakatalilal

Description

@liyakatalilal

Parent: Backend Services [BE]

Description

Expose two API endpoints for the Project Manager dashboard bottom section.

Timesheets endpoint: GET /api/method/next_pms.api.dashboard.get_team_timesheets

  • Parameters: project_manager (user), period (e.g., "last_week")
  • Response: Array of member objects — member_name, member_avatar, billable_hours, non_billable_hours, expected_hours, delta (numeric), delta_status (one of: "pending", "on_track", "over_under") — used to show the hourglass, green tick, or red cross icon in the Delta column.

Time-offs endpoint: GET /api/method/next_pms.api.dashboard.get_upcoming_timeoffs

  • Parameters: from_date, to_date
  • Response: Array of time-off entries — date_label (e.g., "Today, First half"), members (array of { name, avatar })

Design Reference

Image

Project-manager-dashboard.jpg (Timesheets table with 6 members and Delta icons; Upcoming time-offs panel with 4 date entries and member avatars)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions