Logic of the application working perfect,issues with the settlement resolved