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

[Feature RQ] [B #4] Invoicing - Create #39

Closed
4 tasks
TreyWW opened this issue Aug 23, 2023 · 13 comments · Fixed by #60
Closed
4 tasks

[Feature RQ] [B #4] Invoicing - Create #39

TreyWW opened this issue Aug 23, 2023 · 13 comments · Fixed by #60

Comments

@TreyWW
Copy link
Owner

TreyWW commented Aug 23, 2023

Create an invoice

Preconditions:

  • Step 1:
    • "FROM" and "TO" Containers when pressed bring up modal.
    • Two options, they can either enter their details manually, or select a premade "customer"
  • Step 2:
    • Issue and due dates
  • Step 3:
    • Services
    • These are listed in a list that you can add and remove from using JS

Acceptance Criteria:

  • All 3 steps completed

Definition of Done:

  • Created tests/urls logged_in.json and unlogged_in.json json objects for any added URLS
  • Created tests/views for any added VIEWS and create invoice view
  • Code has been tested with both python manage.py urls_test and python manage.py test_views
  • All of Acceptance Criteria is complete

References

list of products or services
customer invoice
main create invoice
multi step design

@TreyWW TreyWW changed the title [Feature RQ] [ISS #4] Invoicing - Create [Feature RQ] [B #4] Invoicing - Create Aug 24, 2023
@TreyWW
Copy link
Owner Author

TreyWW commented Aug 24, 2023

Notes

Branch

  • feature/invoices/39-create

Key Files

  • frontend/static/js/pages/invoices/create.js
  • frontend/templates/core/pages/invoices/create/create.html
  • backend/views/core/invoices/create.py

Repository owner deleted a comment from allcontributors bot Aug 28, 2023
Repository owner deleted a comment from allcontributors bot Aug 28, 2023
Repository owner deleted a comment from allcontributors bot Aug 28, 2023
@TreyWW
Copy link
Owner Author

TreyWW commented Aug 30, 2023

Modal doens't close when you add service

@TreyWW
Copy link
Owner Author

TreyWW commented Aug 31, 2023

Nice reference, add logo and also service HOURS / QUANTITY.
image

@TreyWW
Copy link
Owner Author

TreyWW commented Sep 4, 2023

Possibly add invoice categories for example "My Accounting Services" to keep invoices organized

This was referenced Sep 5, 2023
@TreyWW TreyWW linked a pull request Sep 5, 2023 that will close this issue
@TreyWW TreyWW closed this as completed in #60 Sep 5, 2023
@TreyWW TreyWW reopened this Sep 5, 2023
@TreyWW
Copy link
Owner Author

TreyWW commented Sep 30, 2023

Still need lots of features to be added, such as;

  • creating the actual invoice
    • download it
    • edit it in a nice editor
  • make sure "TO" and "FROM" save to the created invoice, they dont yet
  • add an option to "load" a client info

@shinegit1
Copy link

#make sure "TO" and "FROM" save to the created invoice

I don't understand what you want if you created a client field in the invoice model.
Are TO and FROM two different clients (from options or created clients) or
FROM - auth user
To - an option to select a client from created clients?

@TreyWW
Copy link
Owner Author

TreyWW commented Oct 12, 2023

Yeah sorry I didn't really give an explanation.

To: the person you want to send it to (your clients details)
From: Person you want to send from (your details/company details)

So for both fields I also want a drop-down to load from a created client (load from model) (or load from your details model - not yet added)

@shinegit1
Copy link

Then, should we modify the Invoice model (id, user, clitent_to, client_from, items, payment_status, date_due, date_issued, created_date)?
loaded from created clients:
client_to - person
client_from - person

*So for both fields I also want a drop-down to load from a created client (load from model) (or load from your details model - not yet added): will these details from the auth user's side in 'load from your details model - not yet added '?

@TreyWW
Copy link
Owner Author

TreyWW commented Oct 13, 2023

Yeah, so we'll want a few fields:

  • client_to (client, optional)
  • client_from (yourself/company, optional)
    then
  • client_detail_name (charfield, optional) [example]
    But you can't have both client_to and client_detail_name, only one or another.

If that makes sense?

@TreyWW
Copy link
Owner Author

TreyWW commented Oct 13, 2023

Re-reading the comment you made yesterday, so when i said "save", the data wont actually be saved in the DB, just that the data needs to be sent along with the POST request, cause its inputted through a modal. I'm going to take a look at this now and see if i can provide any more info

@TreyWW
Copy link
Owner Author

TreyWW commented Oct 13, 2023

Turns out we do actually already have them detailes saved, "to_name" for example. I'll work on getting the create invoice view finished, unless you'd like to work on it too

@TreyWW
Copy link
Owner Author

TreyWW commented Oct 14, 2023

I've added a few more inputs, heres some images

image
image
image

@TreyWW
Copy link
Owner Author

TreyWW commented Apr 5, 2024

Basic invoices have been completed!

@TreyWW TreyWW closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants