Try ERPNext Buy Support Partners Foundation

Help Needed for Creating different Workflows for different Material Request Types

Dear community,

I was attempting to create different workflows for different Material Request types. Only Purchase type will have multi-approval while others will only need one approval.

    • Purchase type (Created by staff -> Approved by Head of Dept. -> Final approval by Procurement )
    • Other types such as Manufacture, Material Issue, Material Transfer and Customer Provided will have much simpler workflows (Created by staff -> Approved by Head of Dept.)

.
.
Below are the screenshots of my attempt:


.
This is the condition I put for Purchase Request:

.
This is the condition I put for Material Request for others:
doc.material_request_type==‘Manufacture’ || doc.material_request_type==‘Customer Provided’ || doc.material_request_type==‘Material Issue’ || doc.material_request_type==‘Material Transfer’

.
I have this error: SyntaxError: unexpected EOF while parsing