Adds purchase ID to table and detail pages

Closes #18