Commit 66070197 authored by Prajkta Patkar's avatar Prajkta Patkar Committed by Prajkta_Patkar
Browse files

corrected

parent 02262d94
......@@ -150,7 +150,7 @@ class api_transaction(object):
if dataset.has_key("instrumentdate"):
instrumentdate=dataset["instrumentdate"]
dataset["instrumentdate"] = datetime.strptime(instrumentdate, "%Y-%m-%d")
# generate voucher number if it is sent.
# generate voucher number if it is not sent.
if dataset.has_key("vouchernumber") == False:
vchNo = self.__genVoucherNumber(self.con,voucherType,dataset["orgcode"])
dataset["vouchernumber"] = initialType
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment