Показать сообщение отдельно
Старый 27.01.2011, 14:12   #9  
Ivanhoe is offline
Ivanhoe
Участник
Аватар для Ivanhoe
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
 
4,143 / 2155 (80) +++++++++
Регистрация: 29.09.2005
Адрес: Санкт-Петербург
Код из AX 2009 SP1 RU5:
X++:
LedgerAccount accountOperations()
{
    if (! cacheAccountOperations)
    {
        if (prodBOM.prodTable().ProdPostingType   == ProdPostingType::ProdGroup)
            cacheAccountOperations = ProdGroup::find(prodBOM.prodTable().ProdGroupId).AccountIssueOffset;
        else
            /* <SYS>
            cacheAccountOperations = InventPosting::item(InventAccountType::ProdIssueOffsetAccount,prodBOM.ItemId,this.inventTable().ItemGroupId);
            </SYS> */
            // <GEEU>
            cacheAccountOperations = InventPosting::item(InventAccountType::ProdIssueOffsetAccount,prodBOM.ItemId,this.inventTable().ItemGroupId,this.inventdim());
            // </GEEU>
    }

    return cacheAccountOperations;
}
__________________
Ivanhoe as is..