I’m currently working on a customization in Epicor’s Job Entry application, and I could use some guidance. My goal is to create a restriction on the “New Operation” feature so that once materials have been issued to a job, users won’t be able to add any new operations.
Does anyone know how to accomplish this? Any insights or step-by-step advice would be greatly appreciated!
@Muntaha_Bajwa Welcome. First thing is to do a trace and see the business object that are being called. Then pre processing on EG AddNewOpertion have a bpm that does count of JobMtl records with issued quantity > 0. If any exist then throw an exception with a nice message that stops the add operation.
Hi! I’m just getting started with this, so I could use some guidance. Do I need to create a Custom Code widget to count JobMtl records where the issued quantity is greater than zero? Thanks for the help!
Hey, I’m sorry for being such a noob in this, I’m trying to set up a method directive, but I don’t see the ‘Set Argument/Variable’ widget in my Method Directive Maintenance. Is there something I need to enable for it to show up?
Also, once I have it, how should I define variables or arguments for this directive?
Hey everyone!
I’m working on a BPM to restrict adding new operations in the Job Entry screen when materials have already been issued to a job. I set up a condition to check if any JobMtl records have an IssuedQty greater than 0, but it’s not working as expected. Has anyone else encountered this or had any ideas on what I might be missing?
Hi, I’ve designed this, but it’s still not working as expected. Could you guide me on what I might be doing wrong?
Also after I save it I am getting this error,
There is at least one compilation error.
InsertNewJobOper.Pre.RestrictingNewOp.cs(83,28): error CS0019: Operator ‘==’ cannot be applied to operands of type ‘string’ and ‘bool’
I don’t see anything in the screen shots. be sure to check syntax before you check ok on the expression. If you upload the bpm I will load it and see if I see anything.
Your bpm would not load, so there are issues with it. I did a bpm like yourr on insert and it did not fire, so I did a trace and the method I saw was GetnewJobOper, so I made this one on GetNewJobOper.
The attached bpm stops the add in job entry. stop oper add.bpm (53.2 KB)