added item_code lookup to item allocation