
Hello Team,
We have a new requirement, whenever a Purchase Order is posted reference Sales Order Number needs to be updated in General Ledger Transaction Table with reference of Purchase Order and having the data for new field Sales Order Number. Can you please tell me the Class where in we can find the method where the code is written to update General Ledger Transaction Table while posting the Purchase Order. Thank you.
Hi Senthil,
You can try update info back to General ledger from PurchInvoiceJournalPost.EndPost. At the end of this method, the filed LedgerVoucher of table variable vendInvoiceJour should already have value which is voucher number. then you can use this voucher number and date find created General ledger voucher, then update info on it.