fixes in stock reco cancellation
This commit is contained in:
parent
4fecbc1b3d
commit
396d424ab4
@ -49,14 +49,15 @@ class DocType:
|
|||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
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 = 1
|
count = 1
|
||||||
for s in data:
|
for s in data:
|
||||||
count += 1
|
count += 1
|
||||||
if count == 2:
|
if count == 2 and submit:
|
||||||
if s[0] != 'Item Code' or s[1] != 'Warehouse':
|
if cstr(s[0]).strip() != 'Item Code' or cstr(s[1]).strip() != 'Warehouse':
|
||||||
msgprint("First row of the attachment always should be same as template(Item Code, Warehouse, Quantity \
|
msgprint("First row of the attachment always should be same as \
|
||||||
|
template(Item Code, Warehouse, Quantity \
|
||||||
and Valuation Rate/Incoming Rate)", raise_exception=1)
|
and Valuation Rate/Incoming Rate)", raise_exception=1)
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user