removes total and state for purchase edit