Please how can i set a conditional workflow base on customer’s group on Sales Invoice ?. I have 2 Customers group, Cash Customer’s group and Credit Customer’s group. I want to create a workflow on the Sales Invoice document, Below is how I want the Workflow to work:
(1) Whenever a user raises Sales Invoice for any customer that falls under the Cash Customer group, then Workflow should not apply.
(2) Whenever a user raises Sales Invoice for any customer that falls under the Credit Customer group, then Workflow should apply.
My understanding is you can only have one active workflow for an entire doctype at a time. If you want certain states and actions based on conditions, you’ll have to embed those conditions within that one active workflow.
It would be great to be able to have multiple workflows active on different records within a doctype, depending on certain assignment criteria. I don’t know if that’s on the road map.
With one table of transition, for each state, you have to write conditional expressions to check for those conditions and allow that particular state.
This becomes cumbersome if you have multiple paths for a doctype. if else()