Hi everyone,
I need help setting up a workflow for a specific functionality in ERPNext.
I want to implement a workflow only for the Credit Note creation process in the Sales Invoice doctype. Whenever a user creates a Credit Note (or a Debit Note), it should go through an approval process before being finalized.
Hi
The Sales Invoice is infact a single doctype which serves invoice and return purposes at the same time and as you go applying workflow on it requires to handle both cases for invoicing as well as return.
The conditional workflow transitions are required to be written with conditions in simple python as show below;
Hope you may have a solution.