mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
json error fixed in stock entry
This commit is contained in:
@@ -49,7 +49,8 @@ class DocType(TransactionBase):
|
|||||||
# get item details
|
# get item details
|
||||||
# ----------------
|
# ----------------
|
||||||
def get_item_details(self, arg):
|
def get_item_details(self, arg):
|
||||||
arg, actual_qty, in_rate = eval(arg), 0, 0
|
import json
|
||||||
|
arg, actual_qty, in_rate = json.loads(arg), 0, 0
|
||||||
|
|
||||||
item = sql("select stock_uom, description, item_name from `tabItem` where name = %s and (ifnull(end_of_life,'')='' or end_of_life ='0000-00-00' or end_of_life > now())", (arg.get('item_code')), as_dict = 1)
|
item = sql("select stock_uom, description, item_name from `tabItem` where name = %s and (ifnull(end_of_life,'')='' or end_of_life ='0000-00-00' or end_of_life > now())", (arg.get('item_code')), as_dict = 1)
|
||||||
if not item:
|
if not item:
|
||||||
|
|||||||
Reference in New Issue
Block a user