Wednesday, 2 November 2016

Bridge transaction in Ax 2012

Bridge transaction is not reflecting in General journal line in Ax 2012,






Solution
Need to write code on
Table     : LedgerTransFurtherPosting
Method : CreateledgerjournaltransfromGenJour

ledgerJournalTransTaxExtensionIN = LedgerJournalTransTaxExtensionIN::findByLedgerJournalTrans(ledgerJournalTrans.RecId);


        if (!ledgerJournalTransTaxExtensionIN.RecId)
        {
            ledgerJournalTransTaxExtensionIN.clear();
            ledgerJournalTransTaxExtensionIN.initValue();
            ledgerJournalTransTaxExtensionIN.TaxModelDocLineExtensionIN::init(ledgerJournalTrans);
            ledgerJournalTransTaxExtensionIN.LedgerJournalTrans = ledgerJournalTrans.RecId;

            if (ledgerJournalTransTaxExtensionIN.validateWrite())
            {
                ledgerJournalTransTaxExtensionIN.insert();
            }

        }





No comments:

Post a Comment