stock reco cancellation issue fxed

This commit is contained in:
Nabin Hait 2012-05-04 18:48:30 +05:30
parent b5d50dcc53
commit 875ccac151

View File

@ -51,7 +51,7 @@ class DocType:
"""Convert csv data into list""" """Convert csv data into list"""
count = 2 count = 2
for s in data: for s in data:
if s[0].strip() != 'Item Code': # remove the labels 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):
msgprint("Data entered at Row No " + cstr(count) + " in Attachment File is not in correct format.", raise_exception=1) msgprint("Data entered at Row No " + cstr(count) + " in Attachment File is not in correct format.", raise_exception=1)
@ -175,7 +175,7 @@ class DocType:
"""Add diffs column in attached file""" """Add diffs column in attached file"""
# add header # add header
out = "'Item Code', 'Warehouse', 'Qty', 'Valuation Rate', 'Qty Diff', 'Val Rate Diff'" out = "Item Code, Warehouse, Qty, Valuation Rate, Qty Diff, Val Rate Diff"
# add data # add data
for d in self.data: for d in self.data: