When creating an AR Miscellaneous Invoice with multiple lines, I use the copy invoice lines functionality but I find that this does not copy over the GL account. How do I get the GL account to come through as well?
Or is there a upload/copy from excel solution that is simpler? The variable on each line is the quantity and the comment (we need to add hours utilised)
I have tried this and it allows me to paste. But even though it reflects the GL account number under lines, I cannot see this when I actually click into the line for details so I am hesitant that the GL Account is actually coming through and that it won’t automatically post to the default account.
Yes, you need to save the line first. I can see from the log it calls GetDefaultAccount to get the GL. I would try an ARInvoice.UpdateMaster.Post BPM that calls GetDefaultAccount. Seems to work from a couple of tests, but you need to set a few conditions there so it doesn’t run on every save. I would start with if the invoice is misc, if it doesn’t already have a GL set and if you’re adding a new line then it calls the GetDefaultAccount.
Welcome to the forum! Sorry, I didn’t notice the first time post there. I’m afraid there’s no easy way to do this. I was talking about a BPM that will ‘press that button’ for you after each line is saved. The issue with that is there’s only one save event (UpdateMaster) for all types of invoices. And you don’t want that BPM running for all invoice types, you probably need the miscellaneous types only. So you need some conditions added in the BPM.
If you are familiar with BPMs, try the above. Or maybe an updateable BAQ with custom save methods but it’s kind of the same thing. Again, no easy way comes to mind. Maybe somebody else has an easier solution.