mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
stock reco issue fixed
This commit is contained in:
@@ -49,8 +49,9 @@ class DocType:
|
|||||||
|
|
||||||
def convert_into_list(self, data, submit = 1):
|
def convert_into_list(self, data, submit = 1):
|
||||||
"""Convert csv data into list"""
|
"""Convert csv data into list"""
|
||||||
count = 2
|
count = 1
|
||||||
for s in data:
|
for s in data:
|
||||||
|
count += 1
|
||||||
if count == 2: continue
|
if count == 2: continue
|
||||||
# validate
|
# validate
|
||||||
if (submit and len(s) != 4) or (not submit and len(s) != 6):
|
if (submit and len(s) != 4) or (not submit and len(s) != 6):
|
||||||
@@ -60,7 +61,6 @@ class DocType:
|
|||||||
self.validate_warehouse(s[1], count)
|
self.validate_warehouse(s[1], count)
|
||||||
|
|
||||||
self.data.append(s)
|
self.data.append(s)
|
||||||
count += 1
|
|
||||||
|
|
||||||
if not self.validated:
|
if not self.validated:
|
||||||
raise Exception
|
raise Exception
|
||||||
|
|||||||
Reference in New Issue
Block a user