added templatetag total to calculate total based on incoming and outgoing items
display total on detail page