Thursday, 19 December 2013

How to post with Financial dimensions



Format : 
container            offSetEntryPattern;

["DisplayValue", "MainAccount", NumberOfDimensions, "DimensionName", "DimensionValue"]

E.g:
accEntryPattern = ["601501-Test", "601501", 1, "Department", "OU_1"]

===============================================================
container            offSetEntryPattern;
//LedgerDimension  => Ledgeraccount, DAX 2009
    accEntryPattern = ["601501", "601501", 0]; 
    journalTrans.parmLedgerDimension(AxdDimensionUtil::getLedgerAccountId(accEntryPattern));

    journalTrans.parmAmountCurDebit(2000);

    //OffsetLedgerDimension => OffsetLedgerAccount,  DAX 2009
    offSetEntryPattern = ["401100", "401100", 0];
    journalTrans.parmOffsetAccountType(LedgerJournalACType:: Ledger );
    journalTrans.parmOffsetLedgerDimension(AxdDimensionUtil::getLedgerAccountId( offSetEntryPattern));
-=================================================================

No comments:

Post a Comment