-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Adding invoice editing functionality to MyFinances #153
Merged
TreyWW
merged 16 commits into
TreyWW:main
from
HarryHuCodes:feature/invoices/edit_invoice
Dec 13, 2023
Merged
Adding invoice editing functionality to MyFinances #153
TreyWW
merged 16 commits into
TreyWW:main
from
HarryHuCodes:feature/invoices/edit_invoice
Dec 13, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ebpage and redirect to edit html
…on used in urlpatterns path for redirect to edit.html
…updated redirect paths in edit.html
…ce can be edited now
… pass it to frontend for populating fields during an edit
…rryHuCodes/MyFinances into feature/invoices/edit_invoice
TreyWW
approved these changes
Dec 13, 2023
TreyWW
approved these changes
Dec 13, 2023
Thank you @Tianrui-Luo and @HarryHuCodes for this feature. It's a great feature and will really help the Invoice functionality improve. This is a big step and it's great that you guys managed to do it. Thanks again! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
title: Adding invoice editing functionality to MyFinances
Checklist
What type of PR is this?
Description
Incentive:
What has been done ✔️ :
An edit.html page that allows the user to edit existing invoices with changes to fields like self and client information (such as name, company, addresses, ...etc) as well as issue/due dates. The page layout is consistent with that of the create invoice page and contains sub-html pages: edit_to_destination and edit_from_destination.
Updated urls.py, _fetch_body.html which stores the path and urlpatterns to invoice actions. Created edit.py with a decorator, view function, and associated methods for updating invoice attributes.
We tested this in the backend and saw changes take place in the database which reflects the modifications by the user on updating their invoice information.
SCREENSHOT showcase:
After changing the fields above and extending the due date of the invoice by a year, we get the following:
IDEAS and things to be done:
Added/updated tests?
Related PRs, Issues etc