fix: get cart for logged in user.

This commit is contained in:
Devin Slauenwhite
2022-02-09 10:53:24 -05:00
committed by marination
parent a067aabb3c
commit 78c2a369c4

View File

@@ -311,7 +311,7 @@ def _get_cart_quotation(party=None):
party = get_party()
quotation = frappe.get_all("Quotation", fields=["name"], filters=
{"party_name": party.name, "order_type": "Shopping Cart", "docstatus": 0},
{"party_name": party.name, "contact_email": frappe.session.user, "order_type": "Shopping Cart", "docstatus": 0},
order_by="modified desc", limit_page_length=1)
if quotation: