I was wondering if someone could help me understand how the event FORM_OnAfterTransaction works. We're trying to make a couple of changes to the AP20 screen to help streamline match invoice entry. In many situations the only reason that an invoice doesn't match is the fact that a handling charge is off by a couple of cents. I've added a couple of fields to the AP20 form so the AP user can see the amount of AOC setup on the PO and update with what came in on the invoice (without having to go over to the MA41.7 screen which is how it worked pre 8.0.3 MSP10). We've setup the form so that it would do the following in the FORM_OnAfterTransaction event.
Steps 1 -4 are working ok but when I try to set the message and clear the fields it isn't working. It seems like FORM_OnAfterTransaction isn't really after the transaction completes...seems like after my Step #5 finishes Lawson then sweeps in and overwrites my message and the fields I tried to blank out. Does anyone know a way around this? Otherwise I will probably eliminate Steps 4 -5. Is there a line of code that I need to put in that will stop the processing after step 5 (return false;? or something like that).
thanks