udpated purchase_total method on customer model