Payroll entry not working as mentioned in manual

https://erpnext.com/docs/user/manual/en/human-resources/payroll-entry
As mentioned in this that all salaries are submitted but there is no such option, it just creates drafts of salaries and then submit payroll but salaries are not submitted.

Can you try to refresh the browser? This should help to get the “submit payroll” button visible…

it did, but why is that so?

not even by refresh but by reloading it appeared

I have only observed the same pattern. Could be an async issue (but only guessing)?

It is depending on a hidden field “salary_slips_created” when we create salary slips it does not update this field to true unless we reload the page.
payroll_entry.db_set(“salary_slips_created”, 1)
this is the line in create_salary_slips_for_employees function that does not get executed.