Add delete function, fix some text
This commit is contained in:
@@ -195,6 +195,11 @@ def update_item(fullname, serial, officename, barcode, locationid=None, descript
|
||||
def delete_item(itm):
|
||||
#item.delete(itm)
|
||||
itm.delete_instance()
|
||||
|
||||
def delete_item_id(barcode):
|
||||
#item.delete(itm)
|
||||
itm = get_item(barcode)
|
||||
itm.delete_instance()
|
||||
|
||||
def item_location_str(itm):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user