Introducing a new way to review your PRs.

Read the announcement

frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)

View on GitHub

20 documents · Updated Nov 23, 2026

docs / projects-and-support

Projects, service, and support

Projects, service, and support connect planned customer delivery with later help. Projects manage scope, tasks, time, cost, budgets, billing, and customer access. Support issues manage questions and faults with service targets, customer communication, and warranty work.

Delivery work

Delivery work uses a project as the shared work and commercial context. Tasks describe the work, timesheets record effort, and costing views bring labour, purchases, materials, budgets, orders, invoices, and margin into one project view.

flowchart LR
    Sale[Sold work] --> Project[Project]
    Project --> Task[Tasks and milestones]
    Task --> Time[Timesheets]
    Time --> Cost[Cost and billable effort]
    Project --> Budget[Budgets and commitments]
    Project --> Billing[Orders and invoices]
    Project --> Customer[Customer project access]

The Projects workspace groups the main delivery records with project reports and setup records. Project templates provide a repeatable task plan. A template must contain template tasks and all of their dependencies before a project can use it. The project overview then shows the current delivery state through progress, milestones, workload, overdue work, planned-versus-completed work, unbilled time, and profitability. The costing view adds live financial context and separates totals from the records a user may open. See Project delivery and timesheets for the detailed delivery flow. (erpnext/…/projects.json• L8-298, erpnext/…/project_template.json• L16-35, erpnext/…/project_template.py• L29-77)

Project planning

The Project is the main container for planned work. It relates a customer and, when applicable, a sales order to dates, status, completion, estimated cost, budgets, actual effort, billing, and margin. Progress can follow task completion, task progress, task weight, or manual entry. (erpnext/…/project.json• L12-83, erpnext/…/project.py• L108-116)

The project workspace brings task work, overview signals, costing, budgets, and progress updates into the project record. Its task view supports permission-aware search, sorting, assignment, and small task changes without leaving the project. (erpnext/…/project.js• L104-193, erpnext/…/project.js• L435-603, erpnext/…/project.json• L39-83, erpnext/…/project.json• L498-523)

Project users define customer-facing access. This access is separate from the internal ability to select or read a project in related work. A project can also request status updates from its users on a schedule. (erpnext/…/project.json• L240-249, erpnext/…/project.py• L422-448, erpnext/…/project.py• L584-737)

When a project comes from a sales order, the project links back to that order without replacing a link that another project already owns. This keeps the sales-to-delivery link stable when more than one project is created from the same commercial record. (erpnext/…/project.py• L237-264, erpnext/…/test_project.py• L210-251)

References: erpnext/…/project.json• L12-83 erpnext/…/project.json• L240-249 erpnext/…/project.json• L498-523 erpnext/…/project.js• L104-193 erpnext/…/project.js• L435-603 erpnext/…/project.py• L108-116 erpnext/…/project.py• L229-264 erpnext/…/project.py• L422-448 erpnext/…/project.py• L584-737 erpnext/…/test_project.py• L210-251 erpnext/…/project_template.json• L16-35 erpnext/…/project_template.py• L29-77 erpnext/…/projects.json• L8-298

Task execution

Task turns a project plan into assigned work with dates, status, priority, progress, expected time, milestones, groups, and dependencies. Parent tasks organize child work, while dependency links control completion order and can move open downstream work when a prerequisite changes. The dependency graph rejects circular references so the plan keeps a valid order. (erpnext/…/task.json• L64-213, erpnext/…/task.py• L84-104, erpnext/…/task.py• L183-203, erpnext/…/task.py• L388-448)

The task workspace supports list, tree, Gantt, and Kanban views. A project can also show its tasks in an embedded view with permission-aware inline updates and assignment. Overdue work is driven by expected end dates. Completing a task closes its assignments and updates the connected project; a task can also link delivery work to a support issue. (erpnext/…/task_list.js• L1-35, erpnext/…/task_kanban.js• L1-13, erpnext/…/project.js• L157-300, erpnext/…/task.py• L342-381)

Task changes that affect project figures require access to the project they join or leave. The same boundary applies when a customer creates a task through a project web form. This keeps task changes from silently recalculating a project that the actor cannot select. (erpnext/…/task.py• L280-316, erpnext/…/task.py• L450-472, erpnext/…/test_task.py• L583-649)

The project overview turns task data into delivery signals. It highlights open work that is overdue, blocked, unassigned, or due soon. For closed projects, it explains how tasks ended and shows work left open at closure. (erpnext/…/project_overview.py• L50-71, erpnext/…/project_overview.py• L104-205, erpnext/…/project_overview_breakdown.py• L26-77)

References: erpnext/…/task.json• L64-213 erpnext/…/task.py• L84-104 erpnext/…/task.py• L183-203 erpnext/…/task.py• L280-316 erpnext/…/task.py• L316-355 erpnext/…/task.py• L342-381 erpnext/…/task.py• L388-448 erpnext/…/task.py• L450-472 erpnext/…/test_task.py• L583-649 erpnext/…/project.js• L157-300 erpnext/…/task_list.js• L1-35 erpnext/…/task_kanban.js• L1-13 erpnext/…/project_overview.py• L50-71 erpnext/…/project_overview.py• L104-205 erpnext/…/project_overview_breakdown.py• L26-77

Time and billing

Timesheet records work by employee and activity. Each time row can point to a project and task, record working and billable hours, and carry separate costing and billing values. Activity types provide default rates, while employee-specific activity costs can override them. (erpnext/…/timesheet.json• L158-241, erpnext/…/timesheet_detail.json• L39-179, erpnext/…/activity_type.json• L19-49, erpnext/…/activity_cost.json• L24-89)

The timesheet form keeps entry tied to active employees and open projects, offers a timer for live work, and recalculates hours, billable amounts, and cost amounts as rows change. When submitted time still has billable hours, it exposes the path to create a sales invoice. (erpnext/…/timesheet.js• L4-35, erpnext/…/timesheet.js• L49-97, erpnext/…/timesheet.js• L291-456)

Submitted time updates task and project effort. Submitted time can move from unbilled to partially billed to fully billed, and it can be invoiced from the timesheet. Submitted time rows also guide task status: completed rows can complete a task, while remaining work keeps it open or working. When an invoice is cancelled or returned, its time links are released so the timesheet can become billable again. Project totals combine time with purchase, material, expense, sales order, and sales invoice activity. The costing view also groups the main labour, supplier, and consumed-item cost drivers. It estimates the labour cost missing from time logged without a costing rate. (erpnext/…/timesheet.py• L69-101, erpnext/…/timesheet.py• L145-214, erpnext/…/timesheet.py• L391-403, erpnext/…/timesheet.py• L556-608, erpnext/…/timesheet.py• L348-365, erpnext/…/queries.py• L21-69, erpnext/…/drivers.py• L21-112)

Project billing follows the project named on a sales order or invoice, or on an individual item row when the order or invoice contains work for several projects. The project view lists the related orders and invoices with the amount assigned to that project. If header and item links are mixed, it uses a paged view instead of a single list filter so it does not omit records. (erpnext/…/billing.py• L15-112, erpnext/…/queries.py• L80-99, erpnext/…/queries.py• L192-204, erpnext/…/test_project_costing.py• L110-169)

Timesheet changes check access to every linked task and project before recalculating their figures. They reject time against cancelled tasks and can reject overlapping time for the same user or employee unless the project setting allows it. (erpnext/…/timesheet.py• L82-91, erpnext/…/timesheet.py• L247-324, erpnext/…/test_timesheet.py• L921-984)

The project costing view compares cost with an estimate and contract. It shows monthly trends, billing records, major cost drivers, rate gaps, and links to permitted reports. The accounts view adds ledger activity, open commitments, and project budgets. Budgets can warn or stop new orders, requests, or expenses when spend passes their rules. (erpnext/…/project_costing.py• L35-114, erpnext/…/project_costing.py• L211-283, erpnext/…/accounts.py• L37-47, erpnext/…/budgets.py• L43-71)

Cost totals are broad project measures, but lists and drill-downs follow the user’s permissions on their source documents. This lets a project show a shared financial summary without giving each user access to every time, purchase, invoice, ledger, or budget record behind it. (erpnext/…/project_costing.py• L147-162, erpnext/…/queries.py• L219-227, erpnext/…/accounts.py• L312-326)

References: erpnext/…/timesheet.json• L158-241 erpnext/…/timesheet.js• L4-35 erpnext/…/timesheet.js• L49-97 erpnext/…/timesheet.js• L291-456 erpnext/…/timesheet_detail.json• L39-179 erpnext/…/activity_type.json• L19-49 erpnext/…/activity_cost.json• L24-89 erpnext/…/timesheet.py• L69-101 erpnext/…/timesheet.py• L82-91 erpnext/…/timesheet.py• L145-214 erpnext/…/timesheet.py• L247-324 erpnext/…/timesheet.py• L348-365 erpnext/…/timesheet.py• L391-403 erpnext/…/timesheet.py• L556-608 erpnext/…/test_timesheet.py• L921-984 erpnext/…/billing.py• L15-112 erpnext/…/queries.py• L21-99 erpnext/…/queries.py• L192-227 erpnext/…/drivers.py• L21-112 erpnext/…/project_costing.py• L35-114 erpnext/…/project_costing.py• L147-162 erpnext/…/project_costing.py• L211-283 erpnext/…/accounts.py• L37-47 erpnext/…/accounts.py• L312-326 erpnext/…/budgets.py• L43-71 erpnext/…/test_project_costing.py• L86-169

Customer project access

The customer project view gives an allowed project user a focused view of status, progress, tasks, hours, selected timesheets, and public attachments. It can also let the customer create a task in the project context. Customer time lists use linked projects or sales invoices so they show related records without exposing unrelated work. (erpnext/…/projects.py• L8-25, erpnext/…/projects.html• L21-99, erpnext/…/timesheet.py• L638-685)

Project updates provide a separate customer-facing status message. The delivery team can collect replies from project users and send a project summary. (erpnext/…/project.py• L699-816)

References: erpnext/…/projects.py• L8-25 erpnext/…/projects.html• L21-99 erpnext/…/timesheet.py• L638-685 erpnext/…/project.py• L699-816

Project financial controls

Project budgets connect expected delivery dates to fiscal periods and spending controls. A budget can cover purchase orders, material requests, booked expenses, or cumulative spend. The project view presents whether each account is within budget, over a limit, or blocked by a stop rule. (erpnext/…/project_budgets.py• L26-55, erpnext/…/project_budgets.py• L138-172, erpnext/…/budgets.py• L74-136)

The project accounts view brings together posted ledger values, open commitments, monthly budget use, and active or cancelled project budgets. This connects delivery cost control to the same rules that govern new purchasing and expense activity. See Accounting and finance for the wider financial flow. (erpnext/…/accounts.py• L93-146, erpnext/…/accounts.py• L148-225, erpnext/…/test_project_accounts.py• L33-101)

References: erpnext/…/project_budgets.py• L26-55 erpnext/…/project_budgets.py• L138-172 erpnext/…/budgets.py• L74-136 erpnext/…/accounts.py• L93-146 erpnext/…/accounts.py• L148-225 erpnext/…/test_project_accounts.py• L33-101

Customer support

Customer support turns a question, fault, or service request into a traceable issue. Communications, assignments, service targets, project links, and resolution data stay with that issue. Warranty claims add item coverage and service history when the request concerns a delivered item. See Support case management for the detailed support flow.

flowchart TD
    Request[Customer request] --> Issue[Support issue]
    Issue --> Communication[Replies and timeline]
    Issue --> SLA[Service level agreement]
    SLA --> Target[Response and resolution targets]
    Issue --> Resolve[Resolved or closed]
    Asset[Serial item] --> Warranty[Warranty claim]
    Warranty --> Visit[Maintenance visit]
    Project[Delivery project] --> Issue

Support issues

Issue is the main support case. It records the customer context, request, priority, type, status, project link, communications, response measures, and resolution details. Its normal states are Open, Replied, On Hold, Resolved, and Closed. (erpnext/…/issue.json• L61-126, erpnext/…/issue.py• L32-75)

Issues can start in the desk, from a customer portal, or from an accessible communication. Portal users can create and view cases within their customer scope, but staff-only customer and status fields are protected. A support issue can also become a task, which connects customer help to planned work without changing the support case’s access rules. (erpnext/…/issue.py• L77-116, erpnext/…/issue.py• L275-360, erpnext/…/issue.py• L368-396)

The issue timeline is part of the case record. Staff can split a case at a timeline communication when later work belongs to a new case. The new case starts with its own status and response history, and communications move from the split point in timeline order. (erpnext/…/issue.py• L168-272)

Support views focus work through open, waiting-on-customer, unassigned, and SLA-failed filters. The published issues web form gives a signed-in customer a controlled entry point to create and view cases. Email can also create an issue only when the caller may read the source communication, and replied issues can close automatically after the configured support period. Issue reports then summarize volume, status, assignment, type, priority, response, hold, and resolution measures. (erpnext/…/issue_open.json• L1-21, erpnext/…/issue_sla_failed.json• L1-21, erpnext/…/issues.json• L1-126, erpnext/…/issue.py• L326-350, erpnext/…/issue.py• L368-396, erpnext/…/issue_summary.py• L80-110)

References: erpnext/…/issue.json• L61-126 erpnext/…/issue.py• L32-75 erpnext/…/issue.py• L77-116 erpnext/…/issue.py• L168-272 erpnext/…/issue.py• L275-360 erpnext/…/issue.py• L326-350 erpnext/…/issue.py• L368-396 erpnext/…/issues.json• L1-126 erpnext/…/issue_open.json• L1-21 erpnext/…/issue_sla_failed.json• L1-21 erpnext/…/issue_summary.py• L80-110

Service level agreements

A Service Level Agreement (SLA) defines how fast a supported record should receive a response and reach resolution. An SLA can match a document type, customer, customer group, territory, priority, date range, or record condition. It also defines working hours, holidays, pause states, and completion states. (erpnext/…/service_level_agreement.json• L37-194)

When SLA tracking is active, the system selects the most specific valid agreement and falls back to a default. It calculates response and resolution deadlines in support working time, not simple elapsed time. Status changes and replies pause, resume, fulfill, or fail the agreement. (erpnext/…/service_level_agreement.py• L331-420, erpnext/…/service_level_agreement.py• L568-695, erpnext/…/service_level_agreement.py• L1146-1183)

The same SLA model can apply to standard records such as Issue and Lead, or to a custom document type with a status field. The system adds the SLA fields to the selected document type while keeping each document type’s agreement choices separate. (erpnext/…/service_level_agreement.py• L181-241, erpnext/…/service_level_agreement.py• L256-328, erpnext/…/test_service_level_agreement.py• L134-263)

References: erpnext/…/service_level_agreement.json• L37-194 erpnext/…/service_level_agreement.py• L181-241 erpnext/…/service_level_agreement.py• L331-420 erpnext/…/service_level_agreement.py• L568-695 erpnext/…/service_level_agreement.py• L1146-1183 erpnext/…/test_service_level_agreement.py• L134-263

Warranty service

Warranty Claim records a customer complaint about an item or serial number. It keeps the complaint, customer, item, coverage status, warranty or maintenance agreement dates, contact details, and resolution together. Coverage is judged on the complaint date so later date changes do not change the original service context. Claims can be tracked by status in a work board. (erpnext/…/warranty_claim.json• L51-229, erpnext/…/warranty_claim.py• L53-86, erpnext/…/warranty_claim_status.json• L49-118)

A claim can become a maintenance visit. The link preserves the claim as the source of service work and prevents another completed visit from being created for the same claim. An active visit also prevents claim cancellation. (erpnext/…/warranty_claim.py• L125-182)

References: erpnext/…/warranty_claim.json• L51-229 erpnext/…/warranty_claim.py• L53-86 erpnext/…/warranty_claim.py• L125-182 erpnext/…/warranty_claim_status.json• L49-118 erpnext/…/test_warranty_claim.py• L47-103 erpnext/…/test_warranty_claim.py• L148-159

Delivery and support handoff

Projects and support share customer context but serve different points in the lifecycle. A project represents planned delivery and can link to a sales order. A task can link to an issue, and an issue can link back to the project. Timesheets add effort and billing context, while warranty claims add item coverage and service history. The project onboarding path presents these concepts in order: project, tasks, time, then summary and delay review. (erpnext/…/projects_onboarding.json• L20-44)

The links support a handoff from sold work to delivery and then to ongoing help. They do not merge the records: a support issue remains a case, a task remains delivery work, and project hours remain billable only when their time rows are marked billable. See Project delivery and timesheets for the delivery details. (erpnext/…/project.json• L208-237, erpnext/…/task.json• L75-95, erpnext/…/issue.json• L206-240, erpnext/…/timesheet_detail.json• L82-179)

References: erpnext/…/project.json• L208-237 erpnext/…/task.json• L75-95 erpnext/…/issue.json• L206-240 erpnext/…/timesheet_detail.json• L82-179 erpnext/…/projects_onboarding.json• L20-44

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep project-user customer access separate from internal project selection and source-document permissions.
  • Keep the project task view’s inline actions aligned with Task permissions and with the project progress refresh.
  • Keep project completion rules aligned with task status, task progress, task weight, and the overview’s delivery signals.
  • Keep the project, task, timesheet, activity type, activity cost, and invoice links aligned when changing effort or billing behavior.
  • Keep task dependency, parent-task, and downstream rescheduling rules aligned when changing task dates or hierarchy.
  • Keep task and timesheet access checks aligned with every project recalculation, including a project that a task leaves.
  • Keep project templates valid when changing task hierarchy or dependency rules. Template tasks and their dependencies must be copied into a new project as a complete plan.
  • Keep sales order and invoice project links aligned at both header and item-row level. Billing lists must still find every document when both link forms are used.
  • Keep live costing totals, stored project totals, account ledger values, commitments, and budget status aligned when changing a cost source.
  • Keep purchase, stock consumption, landed-cost claims, returns, and valuation-account rules aligned so one cost is not counted twice.
  • Keep cost-driver groups and unpriced-labour estimates aligned with costing-rate visibility and source-document permissions.
  • Keep budget control stages and actions aligned with the purchase, request, cumulative, and expense checks that can warn or stop work.
  • Keep costing summaries broad while restricting drill-down lists to the user’s permitted source documents.
  • Keep customer portal filters aligned with issue and timesheet links so one customer cannot see another customer’s records.
  • Keep issue web-form fields, email-to-issue access, and automatic closure aligned with the customer and communication boundaries.
  • Keep issue status changes, communications, assignments, SLA metrics, and automatic closure aligned.
  • Keep issue splitting tied to timeline communications and reset the new issue’s response and resolution history.
  • Keep SLA document-type filters isolated when adding or changing standard or custom SLA fields.
  • Keep support hours, holidays, pause states, fulfilled states, and deadline failure checks aligned as one SLA contract.
  • Keep warranty coverage dates tied to the complaint date and protect claims with active maintenance visits.

Important failure modes

TriggerConsequenceGuard
A customer is added as a project user without the intended project shareThe customer cannot open the project view, or access can remain after removalUpdate project-user rows and their record shares together
A task is completed before its dependenciesDelivery progress can report work as complete in the wrong orderRequire dependent tasks to be completed or cancelled first
A dependency change creates a cycleTask order and rescheduling no longer have a valid pathReject circular dependency references before saving
A project task change recalculates a project outside the user’s accessA user can change figures for a project they cannot selectCheck access to each affected current and previous project
A project is created from a sales order that already belongs to another projectThe first project’s sales link can be replaced or commercial context can become unclearKeep the existing sales-order link and report the conflict
A sales order or invoice uses both header and item project links but the billing list applies one filterRelated billing records can be omitted or the list can show the wrong project amountUse row-level amounts and page mixed-link results
A project template omits a dependency or uses a live taskA new project cannot reproduce the planned task graphValidate template tasks, parent ranges, and dependency membership before use
Time is logged against a cancelled task or a task from another projectProject effort and billing totals point to invalid delivery workValidate task status and project alignment before submission
A cost source is hidden from a user but its drill-down is still returnedThe project summary reveals records the user cannot readApply source-doctype permissions to every costing list and report link
A budget stop rule is not reflected in the project account statusUsers see an available budget but a later purchase or expense is blockedUse the same stage and period checks for display and enforcement
Unpriced time is treated as fully costed labourLabour cost and margin are understatedShow rate gaps and estimate the missing cost from priced hours
Stock purchases, landed-cost claims, or returns are assigned to the wrong cost bucketPurchase and consumed-material totals can be overstated or understatedApply the same stock, valuation, claim, and return rules to totals and drivers
A portal issue accepts a caller-supplied customer or statusA customer can create or alter a case outside the support boundaryRestore staff-controlled fields and apply customer-scoped portal access
An issue is created from an unreadable communicationEmail content can be turned into a support case without source accessCheck communication permission before creating the issue
A communication outside the issue timeline is used as a split pointCommunications can move from an unrelated caseAccept only communications referenced by or linked to the issue
An SLA uses elapsed time instead of support hours and holidaysResponse and resolution results do not match the agreementCalculate deadlines and failure status from the SLA calendar
Two document types share an SLA field filterUsers can select an agreement for the wrong record typeKeep each document type’s SLA link filter isolated
A warranty claim is cancelled while a related visit is activeClaim and service history become inconsistentComplete or cancel the active maintenance visit first

Key files

FileWhy to read it
erpnext/…/projects.jsonShows how the Projects workspace exposes delivery records, reports, and setup.
erpnext/…/project.jsonDefines the project’s customer, dates, progress, financial totals, budgets, and customer-user scope.
erpnext/…/project.jsShows how the project workspace connects task work, overview refreshes, costing, budgets, and customer links.
erpnext/…/project.pyShows how project progress, templates, sales links, customer shares, updates, and totals relate.
erpnext/…/project_template.pyShows the validation that keeps reusable task plans complete and ordered.
erpnext/…/project_overview.pyDefines the project delivery summary and the signals used to focus work.
erpnext/…/project_overview_progress.pyExplains the planned-versus-completed view and its relation to project progress methods.
erpnext/…/project_costing.pyDefines the live cost, billing, forecast, margin, access, and report view for a project.
erpnext/…/drivers.pyDefines the main labour, supplier, and consumed-item cost drivers and rate-gap estimate.
erpnext/…/billing.pyShows how project billing finds and presents sales orders and invoices from header or item project links.
erpnext/…/accounts.pyConnects project ledger activity, commitments, budgets, and monthly account use.
erpnext/…/project_budgets.pyShows how project dates and spending rules create project budgets.
erpnext/…/queries.pyDefines the business sources used for labour, purchases, materials, expenses, orders, and invoices.
erpnext/…/test_project_costing.pyDemonstrates how costing totals, billing links, monthly values, and source-document access must agree.
erpnext/…/test_project.pyDemonstrates how project totals, sales links, stock costs, landed costs, and progress rules must agree.
erpnext/…/task.jsonDefines task planning, hierarchy, dependencies, status, time, and project links.
erpnext/…/task.pyShows task validation, dependency behavior, access checks, overdue work, time updates, and project updates.
erpnext/…/timesheet.pyShows time validation, access checks, costing, billing state, project updates, and invoice creation.
erpnext/…/timesheet.jsShows the timesheet entry flow, timer, row calculations, project filters, and invoice action.
erpnext/…/timesheet.jsonDefines the timesheet’s project, employee, time-log, status, costing, and billing data.
erpnext/…/timesheet_detail.jsonDefines the project, task, activity, billable, costing, and billing parts of a time row.
erpnext/…/issue.jsonDefines the support case, customer and project links, statuses, communications, and SLA measures.
erpnext/…/issue.pyShows portal scope, communication handling, issue splitting, automatic closure, and task handoff.
erpnext/…/issues.jsonDefines the customer entry point for creating and viewing support cases.
erpnext/…/service_level_agreement.jsonDefines SLA scope, targets, working time, holidays, pause states, and fulfillment states.
erpnext/…/service_level_agreement.pyShows SLA selection, deadline calculation, status tracking, and failure checks.
erpnext/…/warranty_claim.pyShows coverage evaluation, claim resolution, maintenance handoff, and cancellation protection.
erpnext/…/project_summary.pySummarizes project progress and task counts for portfolio review.
erpnext/…/issue_summary.pySummarizes support volume, status, SLA outcomes, and response or resolution measures.