Skip to content

Account management api integration#13

Open
Nodirbek75 wants to merge 11 commits intomainfrom
feat/account-management-api-integration
Open

Account management api integration#13
Nodirbek75 wants to merge 11 commits intomainfrom
feat/account-management-api-integration

Conversation

@Nodirbek75
Copy link
Contributor

No description provided.

Copy link
Collaborator

@brh28 brh28 left a comment

Choose a reason for hiding this comment

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

Reviewed the backend changes. Looks good, just a few small comments/questions

address = frappe.get_doc({
"doctype": "Address",
"address_title": req.address_title or req.full_name,
"address_type": "Billing",
Copy link
Collaborator

Choose a reason for hiding this comment

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

@islandbitcoin The address the user enters is their business, correct? If so, perhaps this should be set to Shop or Current?

req.approval_date = frappe.utils.now_datetime()
req.save()
# Enqueue ERP record creation in the background — keeps the approve response fast
if req.requested_level in ("TWO", "THREE"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this the only task being queued?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why is this the only task being queued?

All other steps must be synchronous because the approval cannot proceed without their results.

@Nodirbek75 Nodirbek75 requested a review from brh28 February 24, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Api integration on the account-management page when press approve button Use pre-signed url to view the id document on the account management page

2 participants