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

Code Changes views/clients/create.py #356

Closed

Conversation

devenderbutani21
Copy link

Made code changes to views/clients/create.py

@TreyWW
Copy link
Owner

TreyWW commented Apr 27, 2024

@TreyWW TreyWW assigned TreyWW and unassigned TreyWW Apr 27, 2024
@@ -9,14 +9,14 @@
def create_client(request: HtmxHttpRequest):
if request.method == "GET":
return render(request, "pages/clients/create/create.html")

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you run black ./ or py manage.py lint black for me please. Thanks!

@TreyWW
Copy link
Owner

TreyWW commented May 2, 2024

I suggest next time running tests locally, there's been quite a few issues with this PR.

https://docs.strelix.org/MyFinances/contributing/setup/#test-and-lint

@TreyWW TreyWW marked this pull request as draft May 5, 2024 20:38
@devenderbutani21 devenderbutani21 marked this pull request as ready for review May 13, 2024 19:34
@TreyWW
Copy link
Owner

TreyWW commented May 21, 2024

Apologies I force pushed some stuff the other day and it broke a few bits. I'll revert it now

messages.error(request, "Failed to create client - an unknown error occurred")
return redirect("clients dashboard")
def create_client_instance(user, client_details):
organization = user.logged_in_as_team if user.logged_in_as_team else None
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to support adding customers under an individual user aswell as organisation

@TreyWW
Copy link
Owner

TreyWW commented May 21, 2024

Apologies for the really delayed response. If you could fix up the bug that I addressed above that would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✔ Done
Development

Successfully merging this pull request may close these issues.

2 participants