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
98546f99
Commit
98546f99
authored
Nov 29, 2017
by
Reshma Atmaram Bhatawadekar
Browse files
changes in api_organisation.py for consignee field in delchal table.
parent
911bb12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
gkcore/views/api_organisation.py
View file @
98546f99
...
...
@@ -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)"
)
...
...
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