I am still experiencing this bug in 2024, with the behaviour exactly as described here.
Furthermore: attempting to fetch timesheets for a new invoice which were previously incorrectly fetched by the system into another customer's or another project's invoice results in no timesheets getting fetched if all timesheets within the selected timespan have been "consumed" by other invoices, then all open timesheets entries for that customer or project getting fetched upon saving the new invoice, whereby the from and to timestamps do not display in the automatically fetched timesheet entries. Manually deleting all these entries and re-saving results in them getting re-added, until a time range is selected in the filter for fetching timesheets so that within that range there are "unconsumed" timesheet entries available, which then get (correctly) added.
Proposed solution:
Correct bug by which timesheet entries get "consumed" to invoices to which they do not get added.
Make it possible to manually filter timesheet entries by project and date range, resulting in the timesheet entries getting added to a new invoice regardless of them having been previously "consumed" by another invoice (an altert should notify the user of a duplicate use, or prevent the invoice being confirmed to prevent duplicate invoicing of same timesheet entries, or allow these timesheet entries to be displayed but such that they do not count towards said invoice).
Correct the behaviour by which timesheets get added without the user's request for it.
Furthermore, when solving this bug, it would be important to implement a backwards-acting check to retrieve all previously wrongly "consumed" timesheet entries, allowing users to invoice them post-factum.
Information about bug
I am still experiencing this bug in 2024, with the behaviour exactly as described here.
Furthermore: attempting to fetch timesheets for a new invoice which were previously incorrectly fetched by the system into another customer's or another project's invoice results in no timesheets getting fetched if all timesheets within the selected timespan have been "consumed" by other invoices, then all open timesheets entries for that customer or project getting fetched upon saving the new invoice, whereby the from and to timestamps do not display in the automatically fetched timesheet entries. Manually deleting all these entries and re-saving results in them getting re-added, until a time range is selected in the filter for fetching timesheets so that within that range there are "unconsumed" timesheet entries available, which then get (correctly) added.
Proposed solution:
Module
accounts, selling, CRM, other
Version
bench 5.17.2 erpnext 15.27.6 erpnextswiss 1.23.3 frappe 15.29.2 hrms 15.22.2 payments 0.0.1
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
No response