Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

Duplicating/cloning quotes into quotes turns tasks into products #672

Closed
n1smithy opened this issue Jul 17, 2024 · 3 comments
Closed

Duplicating/cloning quotes into quotes turns tasks into products #672

n1smithy opened this issue Jul 17, 2024 · 3 comments
Labels

Comments

@n1smithy
Copy link

Setup

  • Version: v5.10.9-L160
  • Environment: Docker

Interface

  • Flutter: [x]
  • React: [?]
  • Both: []

Checklist

Describe the bug

As described above

Steps To Reproduce

Save a quote which has one or more tasks. Clone it into another qoute. The new quote has only products but with the former tasks as products now.

Expected Behavior

Tasks should stay tasks after cloning.

@turbo124 turbo124 transferred this issue from invoiceninja/invoiceninja Jul 17, 2024
@hillelcoren
Copy link
Member

When cloning, the app currently clears the references to the task/expense to prevent more than one line item from being linked to the same task/expense.

@turbo124 do you have thoughts on this, should it be changed/how does the backend handle it?

@turbo124
Copy link
Member

I think the issue here is the type_id may be getting changed from "2" to "1" ? the task_id/expense_id should definitely be cleared. by the type_id's should not change.

@hillelcoren
Copy link
Member

hillelcoren commented Aug 16, 2024

That makes sense, I'll look into it

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

3 participants