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

voucher type fetched

parent 66070197
......@@ -152,6 +152,7 @@ class api_transaction(object):
dataset["instrumentdate"] = datetime.strptime(instrumentdate, "%Y-%m-%d")
# generate voucher number if it is not sent.
if dataset.has_key("vouchernumber") == False:
voucherType = dataset["vouchertype"]
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