I'm writing simple User Event script (using beforeSave entry in my case) for the Sales Order which reads every item line in it and changes some values in the item line according to the given circumstances.
The problem I've encountered:
If some field of the item line in the Sales Order was changed by the Administrator (role) just now or some time ago, this field should not be changed by my script. Via N/runtime module I can get current user role and verify that he changed something just now, but that doesn't help if the change has been done before the current edit "session".
How can I know, if any administrator changed something? Can I get some history/log/system info for each item line in the sales order?
Thanks in advance