Commit 17f74ca7 authored by Prajkta_Patkar's avatar Prajkta_Patkar
Browse files

condition to check new fields added

parent fd45cdb7
......@@ -6,7 +6,7 @@ Copyright (C) 2013, 2014, 2015, 2016 Digital Freedom Foundation
GNUKhata is Free Software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation; either version 3 of
the License, or (at your option) any later version.and old.stockflag = 's'
the License, or (at your option) any later version.
GNUKhata is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
......@@ -105,6 +105,8 @@ class api_organisation(object):
result = self.con.execute(gkdb.signature.insert(),[sig])
try:
self.con.execute(select([gkdb.organisation.c.invflag]))
con.execute(select([gkdb.tranfernote.c.recieveddate]))
con.execute(select([gkdb.delchal.c.noofpackages,gkdb.delchal.c.modeoftransport]))
except:
inventoryMigration(self.con,eng)
result = self.con.execute(gkdb.organisation.insert(),[orgdata])
......
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