I’ve got a pre processing BPM on the CustShip.Update method in which I am try to set ShipDtl.ShipCmpl true if the shipped quantity is above a 90% threshold. What I mean by that is if 90% of the ordered parts shipped, without any user intervention, the ship complete checkbox should be checked.
I’ve got the BPM setup, the issue I am now facing is that upon initial save of a shipment line, the BPM is not firing. If I save the record again, or change the job ship quantity and save, the ship complete checkbox gets checked (which is the end result I am looking for). Has anyone else ran into this issue?
The first 4 shapes are just setting variables and checking the site.
My end goal was to mark a shipment line complete if 90% of the line has shipped. A major caveat is that we only ship orders from jobs, never from inventory. I was running into issues when we had a multi line shipment that included freight and other misc charges. To get around this, I created a UD field on the ShipDtl field that would hold the (dsShipDtlRow.SellingShipmentQty/dsShipDtlRow.SellingReqQty) * 100 to give us the percentage of the order that shipped. I then compared that value to a constant value and if the condition evaluated to true, I would set the shipcmpl field.