Commit 531a240d authored by Prajkta_Patkar's avatar Prajkta_Patkar
Browse files

documentation added and cess field added in gkupgrade

parent a99caa46
......@@ -291,9 +291,10 @@ Note that invoice is connected to a voucher.
So the accounting part is thus connected with stock movement of that cost.
A new json field called freeqty.
Consignee (shipped to) is a json field which has name , address, state, statecode,gstin as keys along with its value.
Bankdetails is a dictionary will have bankname,accountno. and ifsccode.
Bankdetails is a dictionary will have bankname,accountno., branchname and ifsccode.
taxstate is a destination sate.
sourcestate is source state from where invoice is initiated
sourcestate is source state from where invoice is initiated.
Structure of a tax field is {productcode:taxrate}
"""
invoice = Table('invoice',metadata,
Column('invid',Integer,primary_key=True),
......
......@@ -23,7 +23,7 @@ Contributors:
"Krishnakant Mane" <kk@gmail.com>
"Ishan Masdekar " <imasdekar@dff.org.in>
"Navin Karkera" <navin@dff.org.in>
'Prajkta Patkar'<prajkta@dff.org.in>
'Prajkta Patkar'<prajakta@dff.org.in>
'Reshma Bhatwadekar'<bhatawadekar1reshma@gmail.com>
"""
......@@ -60,6 +60,7 @@ class api_organisation(object):
"""
self.con = eng.connect()
try:
self.con.execute(select([func.count(gkdb.invoice.c.cess)]))
self.con.execute(select([func.count(gkdb.state.c.statecode)]))
self.con.execute(select([func.count(gkdb.invoice.c.reversecharge)]))
self.con.execute(select(gkdb.organisation.c.gstin))
......@@ -78,6 +79,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 invoice add cess jsonb")
self.con.execute("alter table product add UNIQUE(productdesc,orgcode)")
self.con.execute("create table state( statecode integer,statename text,primary key (statecode))")
self.con.execute("insert into state( statecode, statename)values(1, 'Jammu and Kashmir')")
......
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