With workflows you can rewrite how a particular process/workflow is approved in OneOfficeERP.
You can set multiple levels of approval for an OneOfficeERP Workflow. To allow multiple people to submit multiple requests, for approvals by multiple users, OneOfficeERP requires you to fill the Workflow conditions. OneOfficeERP tracks the multiple permissions before submission.
Consider a scenario, where multiple levels of approval are required for a quotation. A sales person (user with 'Sales User' role) will create a quotation. Then it is either approved or rejected by a sales lead (user with 'Sales Manager' role). If approved by sales lead, it is further approved or rejected by regional manager (user with 'Regional Manager' role).
To make a Workflow and transition rules go to:
Home > Settings > Workflow
Once a Workflow is created, you can take actions on it via Workflow Actions.
Before creating a Workflow, it is advised to create these first:
The Workflow States can have different colors according to the state. Eg: Green for success. Document statuses: Saved = 0, Submitted = 1, Cancelled = 2.
4. Enter the Transition Rules.
If you don't apply a Workflow to a document, and that document is submittable, then it has the default workflow with states: Draft - Submitted - Cancelled. If you are applying a Workflow to a submittable document, then those default states should be handled by the user.
In States, optional Workflow state means that the state may not be a part of final approval.
E.g. states like Canceled or Rejected can be optional.
Note: Workflow Actions are not created for optional states.
You can also add a condition for the Transition to be applicable. For example, in this case, if sales executive creates a quotation with grand total of $100,000 or more, a particular role must approve. For this to happen in the particular transition, you can set a property for Condition:
doc.grand_total <= 100000
Here, grand_total
is the field name of the field 'Grand Total' of Quotation. To see the field name of a field go to Menu > Customize.
When a quotation is saved by sales user, the status of the document changes to "Draft" and when clicked on submit the status changes to 'Approval Pending By Sales Manager':
When the Sales Manager logs in, he can either Approve or Reject. If approved the status of the document changes to "Approval Pending By Regional Manager".
When the Regional Manager opens the quotation, he can finally "Approve" or "Reject" it.