added action to calculte the order total and edit discount and total