Показать сообщение отдельно
Старый 08.03.2019, 18:22   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
alirazazaidi: Customer Financial Dimensions copy to Ledger Trans Financial dimension. Dynamics ax 2012 R3
Источник: https://www.tech.alirazazaidi.com/cu...cs-ax-2012-r3/
==============

Does experience count, As ERP consultant, There are always new challenge. With 7 years core Dynamics Customization Experience, Still found new things to learn. Experience told you how to hide your fear of unknown and possibility.

Today very small tip. Which i resolve with experience. We usually create Ledger General With X++ code. The code is available in many webs sites. But today I need to copy financial dimension of Customer/ Vendor/Bank/ Assets to Ledger Journal trans. I found  function in AxdDimensionUtil Class provide the functionality.

The code snippet is as follow. The ledger Journal trans have to two default dimension, one for account and second for offset account.

Suppose we are copy financial dimension form customer account to customer.
trans.parmAccountType(LedgerJournalACType::Cust);
custTable =CustTable::find(_account);
conDim= AxdDimensionUtil::getDimensionAttributeValueSetValue(custTable.DefaultDimension);
trans.parmDefaultDimension(AxdDimensionUtil::getDimensionAttributeValueSetId(conDim));



Источник: https://www.tech.alirazazaidi.com/cu...cs-ax-2012-r3/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.