[shopping cart] show items, editable qty and show amount for that item

This commit is contained in:
Anand Doshi
2013-06-19 17:19:20 +05:30
parent 3dceb8438e
commit c2a352711f
14 changed files with 232 additions and 61 deletions

View File

@@ -0,0 +1,8 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import webnotes
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl

View File

@@ -0,0 +1,51 @@
[
{
"creation": "2013-06-19 15:57:32",
"docstatus": 0,
"modified": "2013-06-19 16:01:25",
"modified_by": "Administrator",
"owner": "Administrator"
},
{
"description": "Default settings for Shopping Cart",
"doctype": "DocType",
"issingle": 1,
"module": "Website",
"name": "__common__"
},
{
"doctype": "DocField",
"fieldname": "territory",
"fieldtype": "Link",
"label": "Default Territory",
"name": "__common__",
"options": "Territory",
"parent": "Shopping Cart Settings",
"parentfield": "fields",
"parenttype": "DocType",
"permlevel": 0,
"reqd": 1
},
{
"create": 1,
"doctype": "DocPerm",
"name": "__common__",
"parent": "Shopping Cart Settings",
"parentfield": "permissions",
"parenttype": "DocType",
"permlevel": 0,
"read": 1,
"role": "Website Manager",
"write": 1
},
{
"doctype": "DocType",
"name": "Shopping Cart Settings"
},
{
"doctype": "DocField"
},
{
"doctype": "DocPerm"
}
]