s='select p.id,partno,description, c.name || l.name as location_descriptor, location_id, container_id, datasheet from parts as p inner join locations as l on p.location_id = l.id inner join containers as c on l.container_id = c.id where p.id = :id;'
s='select p.id,partno,description,notes, c.name || l.name as location_descriptor, location_id, container_id, datasheet from parts as p inner join locations as l on p.location_id = l.id inner join containers as c on l.container_id = c.id where p.id = :id;'
s='select p.id,partno,description,notes, c.name || l.name as location_descriptor from parts as p inner join locations as l on p.location_id = l.id inner join containers as c on l.container_id = c.id where '
s='select p.id,partno,description, c.name || l.name as location_descriptor from parts as p inner join locations as l on p.location_id = l.id inner join containers as c on l.container_id = c.id where '
iffilter['l']=='true':
iffilter['l']=='true':
s+='('
s+='('
@ -201,8 +201,8 @@ def alter(partID):
r={}
r={}
ifpartID<0:
ifpartID<0:
# New entry
# New entry
s='insert into parts (partno, description, datasheet, location_id) '
s='insert into parts (partno, description, datasheet, location_id, notes) '