I want to add a dot after sections and subsections numbers, even in the table of contents and cross-references. With \sectiondot{subsection} of secdot package we don't get the final dot in table of contents and cross-references.
I have tried by redefining the following commands:
\renewcommand{\thechapter}{\arabic{chapter}.}
\renewcommand{\thesection}{\thechapter\arabic{section}.}
\renewcommand{\thesubsection}{\thechapter\thesection\arabic{subsection}.}
But the result in the table of contents is the following:

That is, the subsections appear numbered as if they were subsubsections.
And the subsections headings shows as follows:

EDIT 1 _______________________________________________________________
With this code of Dr. Manuel Kuehner,
\renewcommand\thechapter{\arabic{chapter}.}
\renewcommand\thesection{\thechapter\arabic{section}.}
\renewcommand\thesubsection{\thesection\arabic{subsection}.}
the result is correct in the table of contents but in the headings of sections and subsections we get this:
EDIT 2 _______________________________________________________________
Furthermore, I wish the chapter numbers do not end by a dot, as they will go inside a box, as it is shown in this image:
EDIT 3 _______________________________________________________________
Finally, this is the code that has worked for me:
\renewcommand\thepart{\Roman{part}.}
\renewcommand\thesection{\thechapter.\arabic{section}.}
\renewcommand\thesubsection{\thesection\arabic{subsection}.}
The conflict was caused by definitions that I had used in another book by which I got the point to the right of the number of titles, but not in the TOC (the points that I have marked here with ** strong. text ** to highlight them):
% Section style definition
\titleformat{\section}[runin]
{\normalsize \bfseries}
{\color{black} \S \thesection **strong . text**}
{1ex}{\color{black}}[\qquad]
% Subsection style definition
\titleformat{\subsection}[runin]
{\normalsize \bfseries}
{\color{black} \S \thesubsection .}
{1ex}{\color{black}}[\qquad]
When trying to get the dot after the section number, etc., in the TOC, having forgotten the above definitions, I got these strange results.
I apologize to all of you who have so generously given some of your precious time trying to help me. With your collaboration, seeing that you got correct results and I did not, I was forced to carefully review my code (quite cumbersome) and thus get to discover the cause of the error. By deleting the dots in \thesection strong . text and \thesubsection **.**, obviously, the problem disappeared.
Now it only remains to solve how to put the dot after chapter numbers in the TOC (see screenshot below):
EDIT 4 _______________________________________________________________
Simplifying the statement, the problem to be solved is as follows: add a dot to the right of all part, chapter, section and subsection numbers, both in headings (except for chapters, which must go without a period in headings, but not in TOC) and in TOC.




