mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 16:45:02 +00:00
fix in item addition - details fetching
This commit is contained in:
@@ -166,7 +166,8 @@ class DocType(TransactionBase):
|
||||
# Item Details
|
||||
# -------------
|
||||
def get_item_details(self, args=None):
|
||||
args = args and eval(args) or {}
|
||||
import json
|
||||
args = args and json.loads(args) or {}
|
||||
if args.get('item_code'):
|
||||
ret = get_obj('Sales Common').get_item_details(args, self)
|
||||
return self.get_pos_details(args, ret)
|
||||
|
||||
@@ -77,7 +77,8 @@ class DocType(TransactionBase):
|
||||
# Get Item Details
|
||||
# -----------------
|
||||
def get_item_details(self, args=None):
|
||||
args = args and eval(args) or {}
|
||||
import json
|
||||
args = args and json.loads(args) or {}
|
||||
if args.get('item_code'):
|
||||
return get_obj('Sales Common').get_item_details(args, self)
|
||||
else:
|
||||
|
||||
@@ -102,7 +102,8 @@ class DocType(TransactionBase):
|
||||
# Get Item Details
|
||||
# ----------------
|
||||
def get_item_details(self, args=None):
|
||||
args = args and eval(args) or {}
|
||||
import json
|
||||
args = args and json.loads(args) or {}
|
||||
if args.get('item_code'):
|
||||
return get_obj('Sales Common').get_item_details(args, self)
|
||||
else:
|
||||
|
||||
@@ -107,7 +107,8 @@ class DocType(TransactionBase):
|
||||
|
||||
# ***************** Get Item Details ******************************
|
||||
def get_item_details(self, args=None):
|
||||
args = args and eval(args) or {}
|
||||
import json
|
||||
args = args and json.loads(args) or {}
|
||||
if args.get('item_code'):
|
||||
return get_obj('Sales Common').get_item_details(args, self)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user