How did the company boss get the money? I know that companies make money by selling things (products). I still don't understand.

Earned money-the money is directly credited to the company's bank account or cash-the financial department keeps accounts according to receipts or invoices-financial statements are issued at the end of the month-when salaries are paid, the financial department submits the employee attendance sheet issued by personnel-the leader approves it, and after it is reviewed by the leader-the financial department can transfer money or pay the salary in cash according to the company's situation-the company's fees and taxes are excluded at the end of the month, and the balance is the company's profit-the leader replies according to the financial department at the end of the year.

I hope it helps you.