working inventory totals related with purchases