You are talking about bookkeeping. Probably the best thing is to talk to an accountant who used to organize books for a software company. Alternatively, you could read the basics of accounting.
This question is not solely related to software development, although software has some features that make it different, i.e. lack of raw materials.
Good luck with your question, I personally find this interesting, but I do not believe that it belongs to stackoverflow.
source
share