fixes in stock reco cancellation

This commit is contained in:
Anand Doshi 2012-11-09 12:09:01 +05:30
parent 4fecbc1b3d
commit 396d424ab4

View File

@ -54,9 +54,10 @@ class DocType:
count = 1
for s in data:
count += 1
if count == 2:
if s[0] != 'Item Code' or s[1] != 'Warehouse':
msgprint("First row of the attachment always should be same as template(Item Code, Warehouse, Quantity \
if count == 2 and submit:
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 \
and Valuation Rate/Incoming Rate)", raise_exception=1)
else:
continue