Conditional Workflow on Payment Entry

How can we have a conditional workflow? For example, I want to apply workflow on payment entry that If the payment entry type is receive its states will be draft and approved (submitted) but if the payment entry type is pay then its states will be a draft, request for approval, HOD approval then approved (submitted). Is this workflow possible?

https://docs.erpnext.com/docs/user/manual/en/workflows#3-2-conditions

You can also create statuses within the payment and send it to the approver based on that status and payment type. I have attached a screenshot and conditions for your reference. If you want to understand completely, please tag me.

doc.payment_type == “pay” == “Payable Team Role”
doc.payment_type == “receive” == “Receivable Team Role”


1 Like

Hi @Nixil can you please explain more about that
Thanks