-
Notifications
You must be signed in to change notification settings - Fork 803
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
[IP-841]: Copy Quote UI feedback #932
[IP-841]: Copy Quote UI feedback #932
Conversation
@nielsdrost7: @nielsdrost7, @naui95, @clockwiseq, ...? |
Dear @Verony-makesIT thank you for the further explanations. Your PR AFAIK is not on hold but just pending review. I personally still did not have time to check out the changes and to test them (and eventually get back to you with any question I might have). Please consider that an update has already been planned and at the moment this fix is not included in the upcoming update (see https://github.com/InvoicePlane/InvoicePlane/releases and https://github.com/InvoicePlane/InvoicePlane/milestone/10), which means the review and integration of this PR is - in my opinion - not top priority at the moment. We really appreciate your contributions to the IP community and code base and fully agree with the idea that issues must be fixed. |
Same here: I haven't had time to take a look at your PR, @Verony-makesIT |
@Verony-makesIT can the PR be considered finished or is it still a draft? |
@naui95, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thank you for the PR. The PR works well 👍 there are some changes to be made in my opinion; I've commented the relevant code lines. Some changes go too far and I would revert them to the original solution.
The PR solves more bugs than the original issue, in particular solves:
- feedback on quote copied (needs changes before merging)
- fixes a bug affecting the ability to select an other client when creating a copy of an invoice
- fixes a bug affecting the date chosen by the modal post when copying a quote
For future reference: it would be better to make different issues and PRs for different bugs.
@Verony-makesIT thank you for your PR.
Right now you're solving bug #932 and feature #1019, right? OK, solved, move on. But wait a minute ... you're also changing a date to today's date after copying the quote? So now we need to iron out 1 thing that had absolutely nothing to do with solving some bugs? ai, ai. |
One last thing, before u have to go over the source itself (indenting problems in the translation file?) Could you take a look at naui's and my remarks regarding #932 (comment) ? |
@Verony-makesIT I'll try to make a checklist for you to go over, before we can check the PR one more time and then merge the solution for the Copy Quote UI Feedback:
Let me know once you're done with these changes, then we can make our final checks. |
Bug: No other client can be selected/looked up from the client list. Only the customer from the source invoice was selected. Fix: Selecting an other client is now possible. The selection is saved in the copied invoice.
Bug: The quote date from the source quote was saved and not the selected or entered date from the datepicker. The original quote date was always saved in the copied quote. Fix: The selected date from the datepicker is saved in the copied quote.
Bug: When the data is retrieved from the custom_fields db and put into an array and if there is no data in the db, the array cannot be populated so the result is that there is no "response" at all. Fix: extracted the working snippet from mdl_invoice and modified it in mdl_quotes. Even when there is no data/array there is a response.
bd5fd3c
to
b681d40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed copying as proposed and solved conflicts. Ready to go.
Description
The ajax form doesn't post because there is no response from the backend.
The problem comes when fetching the 'custom_fields' data.
As far as I understand it, the ( existing?) data is retrieved from the custom_fields db and put into an array.
If there is no data in the db the array cannot be populated and as a result of this there is no "response".
Therefore, in modal_copy_quote, the code
is not executed in order to close the modal window and to display the copied quote view page.
To solve the problem I extracted the snippet (copied the custom_fields code) from mdl_invoice.php and modified it in mdl_quotes.php.
Related Issue
#841 Copy quote (modal) UI feedback
Motivation and Context
#841 See description
See commits
See commits
Screenshots (if appropriate):
Pull Request Checklist
Issue Type (Please check one or more)