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

feat(Sales Invoice): allow linking to project without adding timesheets #44295

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented Nov 22, 2024

We used to always add unbilled Timesheets to a Sales Invoice if Project is set. This PR changes that.

From a UI perspective, this feature doesn't make sense. If the user explicitly empties the timesheets table, we shouldn't automatically add them back. This makes it impossible to create a Sales Invoice that is linked to the project (e.g. travel expenses) but shouldn't include any timesheets.

When creating a Sales Invoice via API, this can be useful. We only have to specify the project and billable timesheets are fetched automatically. This use case is covered by providing a whitelisted method: PUT /api/v2/document/Sales%20Invoice/SINV-0001/method/add_timesheet_data

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Nov 22, 2024
@barredterra barredterra removed the needs-tests This PR needs automated unit-tests. label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant