Dear @idaoud Thank you very much.
Unfortunately, I do not understand the speech without an illustrative example, especially since there are no examples on the site for the PHP language. But thanks be to God, I am almost there.
As for your response regarding my concerns about the repetition process, I will post a picture of what I created in recording the basic data and saving it.
I use this data with every invoice creation
This is the result I currently have with every automatic invoice creation.
Please answer me this question here