Continued the modification in the application to fix the total in the text file when there is vat exempt, tested the modification, as per testing, the total is ok if there are vat exempt, but if there are no vat exempt the total is incorrect, modified the application again for fixing it.