Meg, I know this issue is a little older, but in case you are still running into this issue.. I wonder if a little validation could fix this issue? In Script#2 you can set a storage variable to capture the ItemCode or, better yet, the LineKey, and have Script#3 verify that the detail record LineKey matches the storage variable set in Script#2. Another thing you could try, to narrow your margin for errors: Right now, it seems possible for a user to alter pricing on one item, then change the option on different line item. I don't know if you have tried running Script#2 as a PRE VALIDATE on BillOption9, and then setting ScriptFiredVar if detail PriceOverridden = 'Y', but it should also catch a case where the user opens an order that had overridden pricing on it and doesn't change the pricing, but just BillOption9. I know i might be making assumptions about your business process, but based on your issue, I think these suggestions could solve your issue.
↧