fixes about dupclicated invoice for different lines

fixes about dupclicated invoice for different lines