Commit afafb274 authored by Abhijith Balan's avatar Abhijith Balan
Browse files

Inserted stock items in dcinv.c.invprods

parent fa6ecf4b
......@@ -176,6 +176,7 @@ class api_invoice(object):
dcinvdataset["dcid"]=invdataset.pop("dcid")
dcinvdataset["orgcode"]=invdataset["orgcode"]
dcinvdataset["invid"]=invdataset["invid"]
dcinvdataset["invprods"] = stockdataset["items"]
try:
updateinvoice = self.con.execute(invoice.update().where(invoice.c.invid==invdataset["invid"]).values(invdataset))
result = self.con.execute(dcinv.insert(),[dcinvdataset])
......
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