corrected the error in viewAllItems

There is a bug in Add ITem Form. The total value field should be
automatically filled.
Add this in github.