Created the function getTotalSumOfTheOrder()