Script Event Triggers

SUGGESTED

Hi,

I have a set of scripts on SO Detail designed to retain pricing entered by the user. (Without these scripts, MAS reverts the price back to the defaults once the item options are entered.) The scripts work very well 99% of the time. But every once in a while, when one specific salesperson revisits a pre-existing sales order, they do not act as expected. In particular, if a line is added or modified on the Detail table, the scripts recalculate pricing for all the lines--usually setting all the prices to the same value. This happens even when the line added is at the end of all the other lines.

Is there something I don't understand about what triggers scripts? I would have expected only the modified lines to be subject to the script. Also, when the problem happens, not all columns seem to trigger scripts. E.g., the post-validate Item Code script does not trigger, whereas the post-validate BillOption9 one does. This is weird, since the Item Code field is always populated.

I am not 100% sure it is the scripts causing the problem, but I strongly suspect this is the case.

Thanks for any help or clarification.

Meg