add historical function for receipts