Hi,
I have this BPM that triggers a pop up to warn that material is not issued. I only want this to trigger on the final operation. I get an error when I try to add in the JobAsmbl.FinalOp = True field. I am not sure where to add it.
for each ttLaborDtl where (ttLaborDtl.RowMod = ‘U’ or ttLaborDtl.RowMod = ‘A’)
[AND JobAsmbl.FinalOp = True - This is where I think it should go but I get an error when I put it here]
, each JobMtl where (JobMtl.RequiredQty > 0 AND not JobMtl.IssuedQty = JobMtl.RequiredQty) and (ttLaborDtl.Company = JobMtl.Company and ttLaborDtl.JobNum = JobMtl.JobNum) no-lock
FinalOP is numeric. You want to check against the labordtl.oprseq. For speed don’t put the conditions in the where clause use an If then next to skip records you don’t want.
Good afternoon,
Due to long lead times, we want to stock some material at a vendor for use in their production process. We would purchase the material and send it to the vendor. They would produce our item and sell it to us at their price less the material cost. We don’t really want to have to issue jobs for this process.
My thought was to sell the raw material to the vendor and discount it out to $0.00. The vendor would then produce our item and sell it back to us at Gross Price less material allowance (which we would discount out).
I can’t find anywhere on our P.O. where we could enter a discount amount in order to preserve the costing.
Does anyone have a better idea?
Thanks in advance.
Kerry TravisControllerInternational Name Plate Supplies Limited
Sorry, I didn’t change the subject when I entered my own question.
Good afternoon,
Due to long lead times, we want to stock some material at a vendor for use in their production process. We would purchase the material and send it to the vendor. They would produce our item and sell it to us at their price less the material cost. We don’t really want to have to issue jobs for this process.
My thought was to sell the raw material to the vendor and discount it out to $0.00. The vendor would then produce our item and sell it back to us at Gross Price less material allowance (which we would discount out).
I can’t find anywhere on our P.O. where we could enter a discount amount in order to preserve the costing.
Does anyone have a better idea?
Thanks in advance.
Kerry TravisControllerInternational Name Plate Supplies Limited Visit Topic or reply to this email to respond.
I think this is what I had mocked up out of our routine. It validates, but has not been tested. Our final audit is FINAUD, so that was easiest for me to check. If you have various final operations, then you will need to check JobAsmbl for the final op number.
Is that the full custom code? When I tried copy and pasting the code, I am getting syntax errors and unexpected characters. When I removed the CallContext then it seems to not error. What is the extra code inserted and the CallContext?
What are the pre-conditions and requirements needed on a job for the BPM to be triggered? I tried adding a new material seq and linked it to an operation but the BPM is still not triggering.
The material has to be linked to the op and the employee must choose COMPLETE when ending activity. It won’t trigger unless they are trying to close the operation.
I verified with a new job that the material is linked to the op and had it checked as Complete but the code is still not triggering. The show message does display but it seems like it is continuing through the custom code. Are there any other pre-conditions on the job to be required? Is this for both T&E and MES labor entries?
Even when I tried creating a new Job with a material linked to an operation, in T&E, when i complete the operation, the message is not being triggered. Something either in the code or my pre-conditions are not being met to trigger it correctly.