Total/update entry

Updates to Total recalculation and update entry instead of insert new on
edit