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
8e8c60a4
Commit
8e8c60a4
authored
Jul 29, 2017
by
Prajkta_Patkar
Browse files
repeated lines removed also corrected
parent
5d8f4b8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
gkcore/views/api_organisation.py
View file @
8e8c60a4
...
...
@@ -125,8 +125,8 @@ class api_organisation(object):
self
.
con
.
execute
(
"alter table invoice add consignee jsonb, add sourcestate text ,add discount jsonb ,add taxflag integer default 22, add reversecharge text, add bankdetails jsonb,add transportationmode text,add vehicleno text,add dateofsupply timestamp"
)
self
.
con
.
execute
(
"update invoice set taxflag = 22 "
)
self
.
con
.
execute
(
"alter table delchal drop column issuerid"
)
#
self.con.execute("ALTER TABLE delchal DROP CONSTRAINT delchal_custid_fkey, ADD CONSTRAINT delchal_custid_fkey FOREIGN KEY (custid) REFERENCES customerandsupplier(custid)")
#
self.con.execute("ALTER TABLE invoice DROP CONSTRAINT invoice_custid_fkey, ADD CONSTRAINT invoice_custid_fkey FOREIGN KEY (custid) REFERENCES customerandsupplier(custid)")
self
.
con
.
execute
(
"ALTER TABLE delchal DROP CONSTRAINT delchal_custid_fkey, ADD CONSTRAINT delchal_custid_fkey FOREIGN KEY (custid) REFERENCES customerandsupplier(custid)"
)
self
.
con
.
execute
(
"ALTER TABLE invoice DROP CONSTRAINT invoice_custid_fkey, ADD CONSTRAINT invoice_custid_fkey FOREIGN KEY (custid) REFERENCES customerandsupplier(custid)"
)
self
.
con
.
execute
(
"alter table organisation add gstin jsonb"
)
self
.
con
.
execute
(
"alter table product alter specs drop not null,alter uomid drop not null"
)
#self.con.execute("alter table invoice add consignee jsonb")
...
...
@@ -135,7 +135,6 @@ class api_organisation(object):
self
.
con
.
execute
(
"alter table product add gsflag integer"
)
self
.
con
.
execute
(
"update product set gsflag = 7"
)
self
.
con
.
execute
(
"alter table product add gscode text"
)
self
.
con
.
execute
(
"alter table organisation add gstin text"
)
self
.
con
.
execute
(
"alter table product alter specs drop not null,alter uomid drop not null"
)
self
.
con
.
execute
(
"alter table invoice add consignee jsonb"
)
...
...
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