Hi Gary, The reason code is already posted on the value entry. So you need to bring it the last way. You would have to add reason code to the Invt. Posting Buffer table. And then you need to update codeunit 5802 to transfer the field to the Gen. Journal Line, where it then will get to the G/L Entry. This may sound quite easy, but it is not. When yo want to add another field to this flow, then you have to change the logic which today make sure you have as few g/l entries as required. A new field is like a new dimension. The best way to figure out what it's doing would be to set a breakpoint on the BufferInvtPosting function and run the debugger from there. That will show you how it works. [:)]
↧