Skip to content

Commit

Permalink
fix: not able to make sales order (#261)
Browse files Browse the repository at this point in the history
(cherry picked from commit f89eccd)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Mar 6, 2025
1 parent a914488 commit 5554087
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webshop/webshop/shopping_cart/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,13 @@ def get_party(user=None):
contact.insert(ignore_permissions=True)

return customer
else:
customer = frappe.db.get_value(
"Portal User", {"user": user}, ["parent"]
)

if frappe.db.exists("Customer", customer):
return frappe.get_doc("Customer", customer)


def get_debtors_account(cart_settings):
Expand Down

0 comments on commit 5554087

Please sign in to comment.