Try ERPNext Buy Support Partners Foundation

Workflow Self-Approval BUG

Have Sales Invoice Workflow where there are 2 transitions for the same role. One allows Self-Approval if doc.grand_total < 1000 and the other does not allow self-approval. Intention is small/misc invoices can flow and larger ones get a second review.

The Actions button behaves correctly and does NOT show approve to users that created a Sales Invoice of more than 1000, but DOES show Approve option for those of less than 1000. Issue is when users select the correctly shown Approve option on Actions button they get ‘Self-Approve not allowed error’

ERPNext: v12.17.0 (version-12)
Frappe Framework: v12.14.0 (version-12)