Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
6d4ee80cca
@ -59,8 +59,7 @@ class DocType:
|
||||
self.validate_item(s[0], count)
|
||||
self.validate_warehouse(s[1], count)
|
||||
|
||||
# encode as ascii
|
||||
self.data.append([d.encode("ascii") for d in s])
|
||||
self.data.append(s)
|
||||
count += 1
|
||||
|
||||
if not self.validated:
|
||||
|
@ -39,7 +39,8 @@ class DocType:
|
||||
self.doclist = doclist
|
||||
|
||||
def get_bin(self, item_code):
|
||||
bin = sql("select name from tabBin where item_code = '%s' and warehouse = '%s'" % (item_code, self.doc.name))
|
||||
bin = sql("select name from tabBin where item_code = %s and \
|
||||
warehouse = %s", (item_code, self.doc.name))
|
||||
bin = bin and bin[0][0] or ''
|
||||
if not bin:
|
||||
if not self.doc.warehouse_type :
|
||||
|
Loading…
Reference in New Issue
Block a user