stock reco cancellation issue fxed
This commit is contained in:
parent
b5d50dcc53
commit
875ccac151
@ -51,7 +51,7 @@ class DocType:
|
||||
"""Convert csv data into list"""
|
||||
count = 2
|
||||
for s in data:
|
||||
if s[0].strip() != 'Item Code': # remove the labels
|
||||
if count == 2: continue
|
||||
# validate
|
||||
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)
|
||||
@ -175,7 +175,7 @@ class DocType:
|
||||
"""Add diffs column in attached file"""
|
||||
|
||||
# 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
|
||||
for d in self.data:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user