Approval WorkFlow for Supplier Creation

We have a requirement where the supplier needs to go through a qualification step. Once the supplier details are entered it should be sent for approval and then once approved it should be enabled in the system. Please let me know how this can be accomplished. I created a Workflow using the supplier doc type but it does not work.

Thanks in advance.

share your workflow

your wf cant move directly from 0 to 2

The approver can take docstatus to 1, and reject can take docstatus of 0 here, and in the code, you can check if the workflow_state is like reject then force docstatus to 2