I added a line user-defined field and a header user-defined field. However, when I attempt to total the line value on the header, I receive "The given key was not present in the dictionary" when accessing the screen. The screen is Sales Order Invoice (SO.30.10.00). Below is the code for the header and line fields.
It appears there is both a SO.SOInvoice and AR.ARRegister objects, my guess is that I need to provide a declaration somehow for the extension object for AR.ARRegister, but not sure how to do that.