[FIX]Fixed invoice template related and other issues.