问题1:LedgerDimension

2017-07-17  本文已影响0人  axxxxxxxx

在应付账款的填写,在AX中只要选择了供应商账户,即可获得该供应商账户的ledgerDimension。是如何获得的?

image.png

You can add a segmented entry control to a form when you want that form to show an account number and related dimensions from the chart of accounts. In addition, you use the segmented entry control to associate an account and related financial dimensions with the record that appears in the form. To update the values in the control, you can use a lookup or a list of recently used values to select a value for each segment. Finally, you can have the control validate the updated segments to ensure the account and financial dimensions are a valid combination:
https://community.dynamics.com/ax/b/mukeshhirwani_dynamicsax/archive/2012/06/14/segmented-entry-control-on-forms-in-dynamics-ax-2012-ledger-dimension-ledger-account-lookup-x

static void AC_Test(Args _args)
{
CustTable custTable;
VendTable vendTable;
LedgerDimensionAccount led;
while select vendTable where vendTable.AccountNum == "F00424"
{
info(vendTable.AccountNum);
}

//LedgerDefaultAccountHelper::getDefaultAccountFromMainAccountRecId(MainAccount::findByMainAccountId(vendTable.AccountNum).RecId);
info(strFmt("%1,",DimensionStorage::accountNum2LedgerDimension('F00424', LedgerJournalACType::Vend)));

info(strFmt("%1,",DimensionStorage::getDynamicAccount('F00424', LedgerJournalACType::Vend)));

}

上一篇下一篇

猜你喜欢

热点阅读