Уточнил. Изначально был код, который выложил Ivanhoe. Но в данном случае у нас возникает ошибка, из-за которой задан вопрос. Для того что бы Система вела согласно хелпа были внесены следующие изменения в данном коде и код выглядит так:
X++:
LedgerAccount accountOperations()
{
if (! cacheAccountOperations)
{
if (prodBOM.prodTable().ProdPostingType == ProdPostingType::ProdGroup)
{
cacheAccountOperations = ProdGroup::find(prodBOM.prodTable().ProdGroupId).AccountIssueOffset;
if (! cacheAccountOperations)
cacheAccountOperations =
InventPosting::item(InventAccountType::ProdIssueOffsetAccount,prodBOM.ItemId,this.inventTable().ItemGroupId,this.inventdim());
}
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;
}
Был внесен следующий кусок:
X++:
if (! cacheAccountOperations)
cacheAccountOperations =
InventPosting::item(InventAccountType::ProdIssueOffsetAccount,prodBOM.ItemId,this.inventTable().ItemGroupId,this.inventdim());
}