How to set actual job output quantity do not exceed production quantity

At one site we added a customization to the MES End Activity form.
used the JobOperSearchAdapter to get the RunQty and the PreviousQuantityReported
and then compare the previous + proposed qtys with the run qty

  • warning message if less than run qty
  • error message if over the run qty

Note they only used the End Activity form, TBD if you are also using Report Qtys button/form.
And… I’m guessing you could do something similar in a BPM instead of a form customization but… have not actually tried it yet.