[webshop] [cart] add to cart, remove_from_cart, update qty, checkout methods

This commit is contained in:
Anand Doshi
2013-06-17 15:42:38 +05:30
parent aa0ccf8223
commit e81321219e
3 changed files with 85 additions and 75 deletions

View File

@@ -111,7 +111,7 @@ def _get_basic_details(args, item_bean):
out = webnotes._dict({
"item_code": item.name,
"description": item.description_html or item.description,
"reserved_warehouse": item.default_warehouse,
"reserved_warehouse": item.default_warehouse or args.warehouse or args.reserved_warehouse,
"warehouse": item.default_warehouse or args.warehouse,
"income_account": item.default_income_account or args.income_account,
"expense_account": item.purchase_account or args.expense_account,