Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sakshi Agrawal
gkcore
Commits
531a240d
Commit
531a240d
authored
Oct 27, 2017
by
Prajkta_Patkar
Browse files
documentation added and cess field added in gkupgrade
parent
a99caa46
Changes
2
Hide whitespace changes
Inline
Side-by-side
gkcore/models/gkdb.py
View file @
531a240d
...
...
@@ -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
),
...
...
gkcore/views/api_organisation.py
View file @
531a240d
...
...
@@ -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'<praj
a
kta@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')"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment