added website pages for orders, tickets and added sales invoice print format

This commit is contained in:
Rushabh Mehta
2013-03-21 17:12:25 +05:30
parent a75efa76f9
commit bed19ac4d3
24 changed files with 490 additions and 174 deletions

View File

@@ -70,4 +70,11 @@ def set_status(name, status):
st = webnotes.bean("Support Ticket", name)
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""",
webnotes.session.user, as_dict=1)
return tickets