mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 14:38:26 +00:00
[customer login] [minor] commonified listing of orders, invoices, shipments, tickets and messages
This commit is contained in:
@@ -73,17 +73,6 @@ def set_status(name, status):
|
||||
st.doc.status = status
|
||||
st.save()
|
||||
|
||||
@webnotes.whitelist()
|
||||
def get_tickets():
|
||||
tickets = webnotes.conn.sql("""select
|
||||
name, subject, status
|
||||
from `tabSupport Ticket`
|
||||
where raised_by=%s
|
||||
order by modified desc
|
||||
limit 20""",
|
||||
webnotes.session.user, as_dict=1)
|
||||
return tickets
|
||||
|
||||
def get_website_args():
|
||||
bean = webnotes.bean("Support Ticket", webnotes.form_dict.name)
|
||||
if bean.doc.raised_by != webnotes.session.user:
|
||||
|
||||
Reference in New Issue
Block a user