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
5d8f4b8c
Commit
5d8f4b8c
authored
Jul 29, 2017
by
Prajkta_Patkar
Browse files
taxflag=22 column word removed
parent
192131ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
gkcore/views/api_organisation.py
View file @
5d8f4b8c
...
...
@@ -123,7 +123,7 @@ class api_organisation(object):
# this is to clean null and empty values during old vat based invoices
self
.
con
.
execute
(
"update invoice set taxstate = null where taxstate = '' or taxstate = 'none'"
)
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
column
taxflag = 22 "
)
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)")
...
...
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