Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Invoicing Partial Timesheet Details #44167

Open
SamuelHelbling opened this issue Nov 15, 2024 · 0 comments
Open

Issue with Invoicing Partial Timesheet Details #44167

SamuelHelbling opened this issue Nov 15, 2024 · 0 comments
Labels

Comments

@SamuelHelbling
Copy link

SamuelHelbling commented Nov 15, 2024

Information about bug

When I create a new Sales Invoice via the Sales Workspace and load the timesheets of a project via the Fetch Timesheet, all timesheets are marked as billed, even if there are still time bookings from other projects in the same timesheets. If I create a sales invoice directly via a project, I do not have this problem.

Steps to reproduce the bug:

  1. Create a timesheet with multiple timesheet details for different projects.
    For example:

    • Timesheet Detail 1: 10 hours for Project 1, marked as billable.
    • Timesheet Detail 2: Hours for Project 2, also marked as billable.
      image
  2. Submit the timesheet.

  3. Create a sales invoice via the sales workspace and use "Fetch Timesheets" to get billable hours for one of the projects (e.g., Project 1) from timesheets. You get 10 hours.
    Screenshot 2024-11-15 at 5 42 02 PM

  4. After submitting the sales invoice, observe that all the hours in the timesheet are marked as billed, rather than just the hours for the invoiced project.

  5. Attempt to create a sales invoice for the second project (e.g., Project 2). Notice that the remaining 10 hours no longer appear as available to invoice, even though they haven’t been invoiced yet.

Expected Behavior:
Only the hours associated with the invoiced project (e.g., Project 1) should be marked as billed, leaving the hours for other projects available for invoicing.

Actual Behavior:
The entire timesheet is marked as billed after invoicing one project, preventing further invoicing of other projects' hours.
Screenshot 2024-11-15 at 5 28 55 PM

This bug can become a serious problem for companies.

Module

projects

Version

Frappe Framework: v15.47.1
ERPNext: v15.41.1

Installation method

docker

Relevant log output / Stack trace / Full Error Message.

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant