Quantcast
Channel: Sage 100
Viewing all articles
Browse latest Browse all 37158

Forum Post: In scripting, how would you trigger an event in the parent object based on a change in the child object?

$
0
0
Doing a sales order invoice and adding some point of sale functionality (amount tendered,  change due,  balance due, etc.). I have an event that computes the change,  etc. that triggers based on entering the amount tendered,  changing the freight, etc. which are all part of the header object. However,  I would like the event to automatically trigger as well if the lines change and the invoice total changes. It doesn't appear that there is a way to trigger based on the invoice total (at least that I have found) which leaves me with attaching the event to the fields on the detail line.   But how do you reference the parent object without opening a new instance of it?   I know there is a command to access a child object.

Viewing all articles
Browse latest Browse all 37158

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>