17 Haziran 2014 Salı

AX 2012 - How to read/write Vendor/Customer to LedgerJournalTrans table?

This information store in ledgerDimension field. When writing:

LedgerJournalTrans.LedgerDimension    = DimensionStorage::getDynamicAccount(myVendAccount, LedgerJournalACType::Vend);

When reading you can look up for AccountDisplay or accountNameFind methods or:

DimensionStorage::ledgerDimension2AccountNum(ledgerJournalTrans.OffsetLedgerDimension)
DimensionStorage::ledgerDimension2AccountNum(ledgerJournalTrans.LedgerDimension)

CustTable::findByLedgerDimension(ledgerJournalTrans.LedgerDimension)                                                     VendTable::findByLedgerDimension(ledgerJournalTrans.LedgerDimension)

Hiç yorum yok:

Yorum Gönder