fix in item addition - details fetching
This commit is contained in:
parent
4943af6d6c
commit
c009450ef0
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user