purchaseinfotablemodel uses getSum function