I have a simple table pre-write to populate an UDF_QTY_PULLED column based on the order qty, if the line is a kit component. I ran into a problem when we have to go and adjust the UDF manually, the script keeps on firing to change the UDF back to the order qty. Trying to figure out how I can change the UDF and not have the script fire. When we need to manually adjust we have to set the BO Qty to the amount we are missing from inventory and make the udf 99% of the time 0, and also populate the vendor no. field. The kit explodes and there is no vendor no in that field so I thought I could try to use that trigger.
If oSession.CompanyCode = "TST" then rVal = 0 nOrdered = 0 sKit = "" sVend = "" rVal = oBusObj.GetValue("SkipPrintCompLine$", sKit) rVal = oBusObj.GetValue("QuantityOrdered", nOrdered) if sKit = "Y" then 'rVal = oBusObj.GetValue("QuantityOrdered", nOrdered) 'rVal = oBusObj.GetValue("VendorNo$", sVend) 'if nOrdered <> 0 then rVal = oBusObj.SetValue("UDF_QTY_PULLED", nOrdered) if sVend <> "" then rVal = oBusObj.SetValue("UDF_QTY_PULLED", 0) end if end if end if