Commit 98546f99 authored by Reshma Atmaram Bhatawadekar's avatar Reshma Atmaram Bhatawadekar
Browse files

changes in api_organisation.py for consignee field in delchal table.

parent 911bb12d
......@@ -60,6 +60,7 @@ class api_organisation(object):
"""
self.con = eng.connect()
try:
self.con.execute(select([func.count(gkdb.delchal.c.consignee)]))
self.con.execute(select([func.count(gkdb.invoice.c.orgstategstin)]))
self.con.execute(select([func.count(gkdb.invoice.c.cess)]))
self.con.execute(select([func.count(gkdb.state.c.statecode)]))
......@@ -83,6 +84,7 @@ class api_organisation(object):
self.con.execute(select(gkdb.organisation.c.billflag))
self.con.execute(select([func.count(gkdb.billwise.c.billid)]))
except:
self.con.execute("alter table delchal add consignee jsonb")
self.con.execute("alter table invoice add orgstategstin text")
self.con.execute("alter table invoice add cess jsonb")
self.con.execute("alter table product add UNIQUE(productdesc,orgcode)")
......
Supports Markdown
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