I am working on a button script to add lines to an existing general journal entry. The button script has the context of the Header as the oBusObj. I am finding that I can add records to the lines (Set oGLJournalLines = oBusObj.AsObject(oBusObj.Lines)) with an account key, but if I set either debit or credit amounts the first always ends with a retVal = 0 and doesn't take. The 2nd one always works. Also, the oBusObj.Write() always fails with a retVal = 0. I am thinking the only way that this is possible is by instantiating a separate BO. THoughts?
↧