mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: get cart items for logged in user.
This commit is contained in:
@@ -264,7 +264,7 @@ class ProductQuery:
|
|||||||
customer = get_customer(silent=True)
|
customer = get_customer(silent=True)
|
||||||
if customer:
|
if customer:
|
||||||
quotation = frappe.get_all("Quotation", fields=["name"], filters=
|
quotation = frappe.get_all("Quotation", fields=["name"], filters=
|
||||||
{"party_name": customer, "order_type": "Shopping Cart", "docstatus": 0},
|
{"party_name": customer, "contact_email": frappe.session.user, "order_type": "Shopping Cart", "docstatus": 0},
|
||||||
order_by="modified desc", limit_page_length=1)
|
order_by="modified desc", limit_page_length=1)
|
||||||
if quotation:
|
if quotation:
|
||||||
items = frappe.get_all(
|
items = frappe.get_all(
|
||||||
@@ -298,4 +298,4 @@ class ProductQuery:
|
|||||||
# slice results manually
|
# slice results manually
|
||||||
result[:self.page_length]
|
result[:self.page_length]
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user