Conditional Workflow on Leave Application

Hi everyone.
I have a request for Conditional workflow.
If a leave request is from a specfic department employee lets say xyz, it should undergo a workflow of
Leave Approver
Product Manager
Project Manager

And if it is from any other department it should be approve by Leave approver only.
I applied condition on product Manager and project manager for department xyz it work fine.
But for single leave approver the attendance dont get marked.
A help will be appreciated.

did the workflow work though in this case?

Yes it works.
But the attendace dont get market because the doc status = 0.

Please share screenshots of the workflow states and action table. You should ideally have one approved state with doc_status =1 and through the conditional actions, lead to the approved state. Seems like that actions table is incorrectly configured.