Update, refund breakdown PHP/JS